dom/ipc/DOMTypes.ipdlh

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
     2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 include protocol PBlob;
     8 include InputStreamParams;
    10 using struct mozilla::SerializedStructuredCloneBuffer from "ipc/IPCMessageUtils.h";
    12 namespace mozilla {
    13 namespace dom {
    15 struct ClonedMessageData
    16 {
    17   SerializedStructuredCloneBuffer data;
    18   PBlob[] blobs;
    19 };
    21 struct NormalBlobConstructorParams
    22 {
    23   nsString contentType;
    24   uint64_t length;
    25 };
    27 struct FileBlobConstructorParams
    28 {
    29   nsString name;
    30   nsString contentType;
    31   uint64_t length;
    32   uint64_t modDate;
    33 };
    35 struct SlicedBlobConstructorParams
    36 {
    37   PBlob source;
    38   uint64_t begin;
    39   uint64_t end;
    40   nsString contentType;
    41 };
    43 struct MysteryBlobConstructorParams
    44 {
    45   // Nothing is known about this type of blob.
    46 };
    48 union ChildBlobConstructorParams
    49 {
    50   NormalBlobConstructorParams;
    51   FileBlobConstructorParams;
    52   SlicedBlobConstructorParams;
    53   MysteryBlobConstructorParams;
    54 };
    56 struct ParentBlobConstructorParams
    57 {
    58   ChildBlobConstructorParams blobParams;
    59   OptionalInputStreamParams optionalInputStreamParams;
    60 };
    62 union BlobConstructorParams
    63 {
    64   ChildBlobConstructorParams;
    65   ParentBlobConstructorParams;
    66 };
    68 } // namespace dom
    69 } // namespace mozilla

mercurial