dom/indexedDB/ipc/PIndexedDBDatabase.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/ipc/PIndexedDBDatabase.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     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 PIndexedDB;
     1.9 +include protocol PIndexedDBTransaction;
    1.10 +
    1.11 +include "mozilla/dom/indexedDB/SerializationHelpers.h";
    1.12 +
    1.13 +using struct mozilla::dom::indexedDB::DatabaseInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h";
    1.14 +using struct mozilla::dom::indexedDB::ObjectStoreInfoGuts from "mozilla/dom/indexedDB/DatabaseInfo.h";
    1.15 +using mozilla::dom::indexedDB::IDBTransaction::Mode from "mozilla/dom/indexedDB/IDBTransaction.h";
    1.16 +
    1.17 +namespace mozilla {
    1.18 +namespace dom {
    1.19 +namespace indexedDB {
    1.20 +
    1.21 +namespace ipc {
    1.22 +
    1.23 +struct NormalTransactionParams
    1.24 +{
    1.25 +  nsString[] names;
    1.26 +  Mode mode;
    1.27 +};
    1.28 +
    1.29 +struct VersionChangeTransactionParams
    1.30 +{
    1.31 +  DatabaseInfoGuts dbInfo;
    1.32 +  ObjectStoreInfoGuts[] osInfo;
    1.33 +  uint64_t oldVersion;
    1.34 +};
    1.35 +
    1.36 +union TransactionParams
    1.37 +{
    1.38 +  NormalTransactionParams;
    1.39 +  VersionChangeTransactionParams;
    1.40 +};
    1.41 +
    1.42 +} // namespace ipc
    1.43 +
    1.44 +protocol PIndexedDBDatabase
    1.45 +{
    1.46 +  manager PIndexedDB;
    1.47 +
    1.48 +  manages PIndexedDBTransaction;
    1.49 +
    1.50 +parent:
    1.51 +  __delete__();
    1.52 +
    1.53 +  Close(bool unlinked);
    1.54 +
    1.55 +child:
    1.56 +  Success(DatabaseInfoGuts dbInfo, ObjectStoreInfoGuts[] osInfo);
    1.57 +
    1.58 +  Error(nsresult rv);
    1.59 +
    1.60 +  Blocked(uint64_t oldVersion);
    1.61 +
    1.62 +  VersionChange(uint64_t oldVersion, uint64_t newVersion);
    1.63 +
    1.64 +  Invalidate();
    1.65 +
    1.66 +both:
    1.67 +  PIndexedDBTransaction(TransactionParams params);
    1.68 +};
    1.69 +
    1.70 +} // namespace indexedDB
    1.71 +} // namespace dom
    1.72 +} // namespace mozilla

mercurial