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

Unified Diff: content/common/indexed_db_messages.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 side-by-side diff with in-line comments
Download patch
Index: content/common/indexed_db_messages.h
diff --git a/content/common/indexed_db_messages.h b/content/common/indexed_db_messages.h
index 07784f3f91d7861708f04b3340e5ad4e8401f871..af05eb65834b8c788d4d1e1b0f709763ae6a0517 100644
--- a/content/common/indexed_db_messages.h
+++ b/content/common/indexed_db_messages.h
@@ -82,6 +82,24 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params)
IPC_STRUCT_MEMBER(int, transaction_id)
IPC_STRUCT_END()
+// Used for counting values within an index IndexedDB.
+IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexCount_Params)
+ // The response should have this id.
+ IPC_STRUCT_MEMBER(int32, response_id)
+ // The serialized lower key.
+ IPC_STRUCT_MEMBER(IndexedDBKey, lower_key)
+ // The serialized upper key.
+ IPC_STRUCT_MEMBER(IndexedDBKey, upper_key)
+ // Is the lower bound open?
+ IPC_STRUCT_MEMBER(bool, lower_open)
darin (slow to review) 2011/12/13 00:50:22 nit: maybe lower_bound_open would be a better name
+ // Is the upper bound open?
+ IPC_STRUCT_MEMBER(bool, upper_open)
+ // The index the index belongs to.
+ IPC_STRUCT_MEMBER(int32, idb_index_id)
darin (slow to review) 2011/12/13 00:50:22 nit: is the "idb_" prefix helpful here? this stru
+ // The transaction this request belongs to.
+ IPC_STRUCT_MEMBER(int, transaction_id)
+IPC_STRUCT_END()
+
// Used to set a value in an object store.
IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params)
// The object store's id.
@@ -134,6 +152,24 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreOpenCursor_Params)
IPC_STRUCT_MEMBER(int, transaction_id)
IPC_STRUCT_END()
+// Used to count within an IndexedDB object store.
+IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCount_Params)
+ // The response should have this id.
+ IPC_STRUCT_MEMBER(int32, response_id)
+ // The serialized lower key.
+ IPC_STRUCT_MEMBER(IndexedDBKey, lower_key)
+ // The serialized upper key.
+ IPC_STRUCT_MEMBER(IndexedDBKey, upper_key)
+ // Is the lower bound open?
+ IPC_STRUCT_MEMBER(bool, lower_open)
+ // Is the upper bound open?
+ IPC_STRUCT_MEMBER(bool, upper_open)
+ // The object store the cursor belongs to.
+ IPC_STRUCT_MEMBER(int32, idb_object_store_id)
+ // The transaction this request belongs to.
+ IPC_STRUCT_MEMBER(int, transaction_id)
+IPC_STRUCT_END()
+
// Indexed DB messages sent from the browser to the renderer.
// IDBCallback message handlers.
@@ -329,6 +365,11 @@ IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor,
IndexedDBHostMsg_IndexOpenCursor_Params,
WebKit::WebExceptionCode /* ec */)
+// WebIDBIndex::count() message.
+IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexCount,
+ IndexedDBHostMsg_IndexCount_Params,
+ WebKit::WebExceptionCode /* ec */)
+
// WebIDBIndex::getObject() message.
IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetObject,
int32, /* idb_index_id */
@@ -417,6 +458,11 @@ IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreOpenCursor,
IndexedDBHostMsg_ObjectStoreOpenCursor_Params,
WebKit::WebExceptionCode /* ec */)
+// WebIDBObjectStore::count() message.
+IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreCount,
+ IndexedDBHostMsg_ObjectStoreCount_Params,
+ WebKit::WebExceptionCode /* ec */)
+
// WebIDBObjectStore::~WebIDBObjectStore() message.
IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_ObjectStoreDestroyed,
int32 /* idb_object_store_id */)
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698