Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseProxy.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IDBDatabaseProxy_h
6 #define IDBDatabaseProxy_h
7
8 #include "Source/modules/indexeddb/indexed_db.mojom-blink.h"
9 #include "modules/indexeddb/IDBObjectStore.h"
10 #include "platform/heap/HeapAllocator.h"
11
12 namespace blink {
13
14 class IDBKey;
15 class IDBKeyPath;
16 class IDBKeyRange;
17
18 class IDBDatabaseProxy final {
19 public:
20 static IDBDatabaseProxy* create(indexed_db::mojom::blink::DatabasePtr);
21
22 void CreateObjectStore(int64_t transactionId, int64_t objectStoreId, const W TF::String& name, const IDBKeyPath&, bool autoIncrement);
23
24 void Close();
25
26 void DeleteObjectStore(int64_t transactionId, int64_t objectStoreId);
27
28 void CreateTransaction(int64_t id, const Vector<int64_t>& objectStoreIds, in dexed_db::mojom::blink::TransactionMode);
29
30 void VersionChangeIgnored();
31
32 void Abort(int64_t transactionId);
33
34 void Commit(int64_t transactionId);
35
36 void Get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, cons t IDBKeyRange*, bool keyOnly, const indexed_db::mojom::blink::Database::GetCallb ack&);
37
38 void GetAll(int64_t transactionId, int64_t objectStoreId, int64_t indexId, c onst IDBKeyRange*, int64_t maxCount, bool keyOnly);
39
40 #if 0
41 void Put(int64_t transactionId, int64_t objectStoreId, Vector<int8_t> value, Vector<BlobInfoPtr>, IDBKey, PutMode, Vector<int64_t> indexIds, Vector<Vector<K eyPtr>> indexKeys);
42 #endif
43
44 void DeleteRange(int64_t transactionId, int64_t objectStoreId, const IDBKeyR ange*);
45
46 void Clear(int64_t transactionId, int64_t objectStoreId);
47
48 void CreateIndex(int64_t transactionId, int64_t objectStoreId, int64_t index Id, const WTF::String& name, const IDBKeyPath&, bool unique, bool multiEntry);
49
50 void DeleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t index Id);
51
52 void SetIndexKeys(int64_t transactionId, int64_t objectStoreId, const IDBKey * primaryKey, const Vector<int64_t> indexIds, const HeapVector<IDBObjectStore::I ndexKeys>&);
53
54 void SetIndexesReady(int64_t transactionId, int64_t objectStoreId, const Vec tor<int64_t> indexIds);
55
56 void OpenCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexI d, const IDBKeyRange*, indexed_db::mojom::blink::CursorDirection, bool keyOnly, indexed_db::mojom::blink::TaskType);
57
58 void Count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, co nst IDBKeyRange*);
59
60 void AckReceivedBlobs(const Vector<WTF::String> uuids);
61
62 private:
63 IDBDatabaseProxy(indexed_db::mojom::blink::DatabasePtr);
64
65 indexed_db::mojom::blink::DatabasePtr m_database;
66 };
67
68 } // namespace blink
69
70 #endif // IDBDatabaseProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698