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

Unified Diff: content/common/indexed_db/indexed_db_messages.h

Issue 10533057: IPC plumbing for IndexedDB to snapshot metadata to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified naming on WK side Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/common/indexed_db/indexed_db_messages.h
diff --git a/content/common/indexed_db/indexed_db_messages.h b/content/common/indexed_db/indexed_db_messages.h
index 9f42b14c69a13fbb315622ceb590221e3689c420..a5a4e124bc3fd146ba77c17a8b106ad0b23d6f63 100644
--- a/content/common/indexed_db/indexed_db_messages.h
+++ b/content/common/indexed_db/indexed_db_messages.h
@@ -11,9 +11,11 @@
#include "content/common/indexed_db/indexed_db_key_range.h"
#include "content/common/indexed_db/indexed_db_param_traits.h"
#include "content/public/common/serialized_script_value.h"
+#include "content/public/common/webkit_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_param_traits.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBMetadata.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
#define IPC_MESSAGE_START IndexedDBMsgStart
@@ -309,6 +311,32 @@ IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen,
IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase,
IndexedDBHostMsg_FactoryDeleteDatabase_Params)
+// WebIDBDatabase::metadata() payload
+IPC_STRUCT_BEGIN(IndexedDBIndexMetadata)
+ IPC_STRUCT_MEMBER(string16, name)
+ IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath)
+ IPC_STRUCT_MEMBER(bool, unique)
+ IPC_STRUCT_MEMBER(bool, multiEntry)
+IPC_STRUCT_END()
+
+IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata)
+ IPC_STRUCT_MEMBER(string16, name)
+ IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath)
+ IPC_STRUCT_MEMBER(bool, autoIncrement)
+ IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes)
+IPC_STRUCT_END()
+
+IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata)
+ IPC_STRUCT_MEMBER(string16, name)
+ IPC_STRUCT_MEMBER(string16, version)
+ IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
+IPC_STRUCT_END()
+
+// WebIDBDatabase::metadata() message.
+IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseMetadata,
+ int32, /* idb_database_id */
+ IndexedDBDatabaseMetadata /* metadata */)
+
// WebIDBDatabase::name() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName,
int32, /* idb_database_id */
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/common/indexed_db/proxy_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698