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

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: Accomodate worker thread changes 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 2a4cf2d844e2c6673e7f9ea924a088a7fc49cc95..82c4b29accad060271e19716097c042612fde90d 100644
--- a/content/common/indexed_db_messages.h
+++ b/content/common/indexed_db_messages.h
@@ -86,6 +86,25 @@ 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 these ids.
+ IPC_STRUCT_MEMBER(int32, thread_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 index the index belongs to.
+ IPC_STRUCT_MEMBER(int32, idb_index_id)
+ // 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.
@@ -168,6 +187,25 @@ IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
IPC_STRUCT_END()
+// Used to count within an IndexedDB object store.
+IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCount_Params)
+ // The response should have these ids.
+ IPC_STRUCT_MEMBER(int32, thread_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.
// The thread_id needs to be the first parameter in these messages. In the IO
@@ -375,6 +413,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_CONTROL5_1(IndexedDBHostMsg_IndexGetObject,
int32, /* idb_index_id */
@@ -468,6 +511,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