dom/ipc/DOMTypes.ipdlh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/ipc/DOMTypes.ipdlh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     1.4 +/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
     1.5 +/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +include protocol PBlob;
    1.11 +include InputStreamParams;
    1.12 +
    1.13 +using struct mozilla::SerializedStructuredCloneBuffer from "ipc/IPCMessageUtils.h";
    1.14 +
    1.15 +namespace mozilla {
    1.16 +namespace dom {
    1.17 +
    1.18 +struct ClonedMessageData
    1.19 +{
    1.20 +  SerializedStructuredCloneBuffer data;
    1.21 +  PBlob[] blobs;
    1.22 +};
    1.23 +
    1.24 +struct NormalBlobConstructorParams
    1.25 +{
    1.26 +  nsString contentType;
    1.27 +  uint64_t length;
    1.28 +};
    1.29 +
    1.30 +struct FileBlobConstructorParams
    1.31 +{
    1.32 +  nsString name;
    1.33 +  nsString contentType;
    1.34 +  uint64_t length;
    1.35 +  uint64_t modDate;
    1.36 +};
    1.37 +
    1.38 +struct SlicedBlobConstructorParams
    1.39 +{
    1.40 +  PBlob source;
    1.41 +  uint64_t begin;
    1.42 +  uint64_t end;
    1.43 +  nsString contentType;
    1.44 +};
    1.45 +
    1.46 +struct MysteryBlobConstructorParams
    1.47 +{
    1.48 +  // Nothing is known about this type of blob.
    1.49 +};
    1.50 +
    1.51 +union ChildBlobConstructorParams
    1.52 +{
    1.53 +  NormalBlobConstructorParams;
    1.54 +  FileBlobConstructorParams;
    1.55 +  SlicedBlobConstructorParams;
    1.56 +  MysteryBlobConstructorParams;
    1.57 +};
    1.58 +
    1.59 +struct ParentBlobConstructorParams
    1.60 +{
    1.61 +  ChildBlobConstructorParams blobParams;
    1.62 +  OptionalInputStreamParams optionalInputStreamParams;
    1.63 +};
    1.64 +
    1.65 +union BlobConstructorParams
    1.66 +{
    1.67 +  ChildBlobConstructorParams;
    1.68 +  ParentBlobConstructorParams;
    1.69 +};
    1.70 +
    1.71 +} // namespace dom
    1.72 +} // namespace mozilla

mercurial