dom/indexedDB/ipc/PIndexedDBTransaction.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/ipc/PIndexedDBTransaction.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +include protocol PIndexedDBDatabase;
     1.9 +include protocol PIndexedDBObjectStore;
    1.10 +
    1.11 +include "mozilla/dom/indexedDB/SerializationHelpers.h";
    1.12 +
    1.13 +using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h";
    1.14 +
    1.15 +namespace mozilla {
    1.16 +namespace dom {
    1.17 +namespace indexedDB {
    1.18 +
    1.19 +namespace ipc {
    1.20 +
    1.21 +struct CreateObjectStoreParams
    1.22 +{
    1.23 +  ObjectStoreInfoGuts info;
    1.24 +};
    1.25 +
    1.26 +struct GetObjectStoreParams
    1.27 +{
    1.28 +  nsString name;
    1.29 +};
    1.30 +
    1.31 +union ObjectStoreConstructorParams
    1.32 +{
    1.33 +  CreateObjectStoreParams;
    1.34 +  GetObjectStoreParams;
    1.35 +};
    1.36 +
    1.37 +struct CompleteResult
    1.38 +{ };
    1.39 +
    1.40 +struct AbortResult
    1.41 +{
    1.42 +  nsresult errorCode;
    1.43 +};
    1.44 +
    1.45 +union CompleteParams
    1.46 +{
    1.47 +  CompleteResult;
    1.48 +  AbortResult;
    1.49 +};
    1.50 +
    1.51 +} // namespace ipc
    1.52 +
    1.53 +protocol PIndexedDBTransaction
    1.54 +{
    1.55 +  manager PIndexedDBDatabase;
    1.56 +
    1.57 +  manages PIndexedDBObjectStore;
    1.58 +
    1.59 +parent:
    1.60 +  __delete__();
    1.61 +
    1.62 +  PIndexedDBObjectStore(ObjectStoreConstructorParams params);
    1.63 +
    1.64 +  Abort(nsresult abortCode);
    1.65 +
    1.66 +  AllRequestsFinished();
    1.67 +
    1.68 +  DeleteObjectStore(nsString name);
    1.69 +
    1.70 +child:
    1.71 +  Complete(CompleteParams params);
    1.72 +};
    1.73 +
    1.74 +} // namespace indexedDB
    1.75 +} // namespace dom
    1.76 +} // namespace mozilla

mercurial