dom/indexedDB/ipc/PIndexedDBTransaction.ipdl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 include protocol PIndexedDBDatabase;
     6 include protocol PIndexedDBObjectStore;
     8 include "mozilla/dom/indexedDB/SerializationHelpers.h";
    10 using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h";
    12 namespace mozilla {
    13 namespace dom {
    14 namespace indexedDB {
    16 namespace ipc {
    18 struct CreateObjectStoreParams
    19 {
    20   ObjectStoreInfoGuts info;
    21 };
    23 struct GetObjectStoreParams
    24 {
    25   nsString name;
    26 };
    28 union ObjectStoreConstructorParams
    29 {
    30   CreateObjectStoreParams;
    31   GetObjectStoreParams;
    32 };
    34 struct CompleteResult
    35 { };
    37 struct AbortResult
    38 {
    39   nsresult errorCode;
    40 };
    42 union CompleteParams
    43 {
    44   CompleteResult;
    45   AbortResult;
    46 };
    48 } // namespace ipc
    50 protocol PIndexedDBTransaction
    51 {
    52   manager PIndexedDBDatabase;
    54   manages PIndexedDBObjectStore;
    56 parent:
    57   __delete__();
    59   PIndexedDBObjectStore(ObjectStoreConstructorParams params);
    61   Abort(nsresult abortCode);
    63   AllRequestsFinished();
    65   DeleteObjectStore(nsString name);
    67 child:
    68   Complete(CompleteParams params);
    69 };
    71 } // namespace indexedDB
    72 } // namespace dom
    73 } // namespace mozilla

mercurial