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

Side by Side Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years 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
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebIDBDatabase_h 26 #ifndef WebIDBDatabase_h
27 #define WebIDBDatabase_h 27 #define WebIDBDatabase_h
28 28
29 #include "public/platform/WebBlobInfo.h" 29 #include "public/platform/WebBlobInfo.h"
30 #include "public/platform/WebCommon.h" 30 #include "public/platform/WebCommon.h"
31 #include "public/platform/modules/indexeddb/WebIDBCursor.h" 31 #include "public/platform/modules/indexeddb/WebIDBCursor.h"
32 #include "public/platform/modules/indexeddb/WebIDBMetadata.h" 32 #include "public/platform/modules/indexeddb/WebIDBMetadata.h"
33 #include "public/platform/modules/indexeddb/WebIDBObserver.h"
34 #include "public/platform/modules/indexeddb/WebIDBTypes.h" 33 #include "public/platform/modules/indexeddb/WebIDBTypes.h"
35 34
35 #include <bitset>
36
36 namespace blink { 37 namespace blink {
37 38
38 class WebData; 39 class WebData;
39 class WebIDBCallbacks; 40 class WebIDBCallbacks;
40 class WebIDBDatabaseCallbacks; 41 class WebIDBDatabaseCallbacks;
41 class WebIDBKey; 42 class WebIDBKey;
42 class WebIDBKeyPath; 43 class WebIDBKeyPath;
43 class WebIDBKeyRange; 44 class WebIDBKeyRange;
44 class WebIDBObserver;
45 45
46 class WebIDBDatabase { 46 class WebIDBDatabase {
47 public: 47 public:
48 virtual ~WebIDBDatabase() {} 48 virtual ~WebIDBDatabase() {}
49 49
50 virtual void createObjectStore(long long transactionId, 50 virtual void createObjectStore(long long transactionId,
51 long long objectStoreId, 51 long long objectStoreId,
52 const WebString& name, 52 const WebString& name,
53 const WebIDBKeyPath&, 53 const WebIDBKeyPath&,
54 bool autoIncrement) = 0; 54 bool autoIncrement) = 0;
(...skipping 23 matching lines...) Expand all
78 long long indexId) = 0; 78 long long indexId) = 0;
79 virtual void renameIndex(long long transactionId, 79 virtual void renameIndex(long long transactionId,
80 long long objectStoreId, 80 long long objectStoreId,
81 long long indexId, 81 long long indexId,
82 const WebString& newName) = 0; 82 const WebString& newName) = 0;
83 83
84 static const long long minimumIndexId = 30; 84 static const long long minimumIndexId = 30;
85 85
86 typedef WebVector<WebIDBKey> WebIndexKeys; 86 typedef WebVector<WebIDBKey> WebIndexKeys;
87 87
88 virtual int32_t addObserver(std::unique_ptr<WebIDBObserver>, 88 virtual void addObserver(
89 long long transactionId) = 0; 89 long long transactionId,
90 int32_t observerId,
91 bool includeTransaction,
92 bool noRecords,
93 bool values,
94 const std::bitset<WebIDBOperationTypeCount>& operationTypes) = 0;
90 virtual void removeObservers( 95 virtual void removeObservers(
91 const WebVector<int32_t>& observerIdsToRemove) = 0; 96 const WebVector<int32_t>& observerIdsToRemove) = 0;
92 virtual void get(long long transactionId, 97 virtual void get(long long transactionId,
93 long long objectStoreId, 98 long long objectStoreId,
94 long long indexId, 99 long long indexId,
95 const WebIDBKeyRange&, 100 const WebIDBKeyRange&,
96 bool keyOnly, 101 bool keyOnly,
97 WebIDBCallbacks*) = 0; 102 WebIDBCallbacks*) = 0;
98 virtual void getAll(long long transactionId, 103 virtual void getAll(long long transactionId,
99 long long objectStoreId, 104 long long objectStoreId,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 WebIDBCallbacks*) = 0; 146 WebIDBCallbacks*) = 0;
142 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0; 147 virtual void ackReceivedBlobs(const WebVector<WebString>& uuids) = 0;
143 148
144 protected: 149 protected:
145 WebIDBDatabase() {} 150 WebIDBDatabase() {}
146 }; 151 };
147 152
148 } // namespace blink 153 } // namespace blink
149 154
150 #endif // WebIDBDatabase_h 155 #endif // WebIDBDatabase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698