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

Side by Side Diff: content/renderer/indexed_db_dispatcher.h

Issue 8779003: Chromium side of IDBIndex.count() and IDBObjectStore.count() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sorted declarations Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 WebKit::WebExceptionCode* ec); 106 WebKit::WebExceptionCode* ec);
107 107
108 void RequestIDBIndexOpenKeyCursor( 108 void RequestIDBIndexOpenKeyCursor(
109 const WebKit::WebIDBKeyRange& idb_key_range, 109 const WebKit::WebIDBKeyRange& idb_key_range,
110 unsigned short direction, 110 unsigned short direction,
111 WebKit::WebIDBCallbacks* callbacks, 111 WebKit::WebIDBCallbacks* callbacks,
112 int32 idb_index_id, 112 int32 idb_index_id,
113 const WebKit::WebIDBTransaction& transaction, 113 const WebKit::WebIDBTransaction& transaction,
114 WebKit::WebExceptionCode* ec); 114 WebKit::WebExceptionCode* ec);
115 115
116 void RequestIDBIndexCount(
117 const WebKit::WebIDBKeyRange& idb_key_range,
118 WebKit::WebIDBCallbacks* callbacks,
119 int32 idb_index_id,
120 const WebKit::WebIDBTransaction& transaction,
121 WebKit::WebExceptionCode* ec);
122
116 void RequestIDBIndexGetObject(const IndexedDBKey& key, 123 void RequestIDBIndexGetObject(const IndexedDBKey& key,
117 WebKit::WebIDBCallbacks* callbacks, 124 WebKit::WebIDBCallbacks* callbacks,
118 int32 idb_index_id, 125 int32 idb_index_id,
119 const WebKit::WebIDBTransaction& transaction, 126 const WebKit::WebIDBTransaction& transaction,
120 WebKit::WebExceptionCode* ec); 127 WebKit::WebExceptionCode* ec);
121 128
122 void RequestIDBIndexGetKey(const IndexedDBKey& key, 129 void RequestIDBIndexGetKey(const IndexedDBKey& key,
123 WebKit::WebIDBCallbacks* callbacks, 130 WebKit::WebIDBCallbacks* callbacks,
124 int32 idb_index_id, 131 int32 idb_index_id,
125 const WebKit::WebIDBTransaction& transaction, 132 const WebKit::WebIDBTransaction& transaction,
(...skipping 27 matching lines...) Expand all
153 WebKit::WebExceptionCode* ec); 160 WebKit::WebExceptionCode* ec);
154 161
155 void RequestIDBObjectStoreOpenCursor( 162 void RequestIDBObjectStoreOpenCursor(
156 const WebKit::WebIDBKeyRange& idb_key_range, 163 const WebKit::WebIDBKeyRange& idb_key_range,
157 unsigned short direction, 164 unsigned short direction,
158 WebKit::WebIDBCallbacks* callbacks, 165 WebKit::WebIDBCallbacks* callbacks,
159 int32 idb_object_store_id, 166 int32 idb_object_store_id,
160 const WebKit::WebIDBTransaction& transaction, 167 const WebKit::WebIDBTransaction& transaction,
161 WebKit::WebExceptionCode* ec); 168 WebKit::WebExceptionCode* ec);
162 169
170 void RequestIDBObjectStoreCount(
171 const WebKit::WebIDBKeyRange& idb_key_range,
172 WebKit::WebIDBCallbacks* callbacks,
173 int32 idb_object_store_id,
174 const WebKit::WebIDBTransaction& transaction,
175 WebKit::WebExceptionCode* ec);
176
163 void RegisterWebIDBTransactionCallbacks( 177 void RegisterWebIDBTransactionCallbacks(
164 WebKit::WebIDBTransactionCallbacks* callbacks, 178 WebKit::WebIDBTransactionCallbacks* callbacks,
165 int32 id); 179 int32 id);
166 180
167 void CursorDestroyed(int32 cursor_id); 181 void CursorDestroyed(int32 cursor_id);
168 182
169 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); 183 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction);
170 184
171 private: 185 private:
172 // IDBCallback message handlers. 186 // IDBCallback message handlers.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> 225 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer>
212 pending_database_callbacks_; 226 pending_database_callbacks_;
213 227
214 // Map from cursor id to RendererWebIDBCursorImpl. 228 // Map from cursor id to RendererWebIDBCursorImpl.
215 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 229 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
216 230
217 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 231 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
218 }; 232 };
219 233
220 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 234 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698