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

Unified Diff: chrome/renderer/indexed_db_dispatcher.h

Issue 2740003: Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks. (Closed)
Patch Set: Make sure indexed_db_context.cc is in the gypi file. Created 10 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/indexed_db_dispatcher.h
diff --git a/chrome/renderer/indexed_db_dispatcher.h b/chrome/renderer/indexed_db_dispatcher.h
index 6c86602e04983646be301c77eae5630a9c617b70..13e4376a359ca1927bfbb7daab430eb76e4c2726 100644
--- a/chrome/renderer/indexed_db_dispatcher.h
+++ b/chrome/renderer/indexed_db_dispatcher.h
@@ -30,6 +30,10 @@ class IndexedDBDispatcher {
WebKit::WebIDBCallbacks* callbacks, const string16& origin,
WebKit::WebFrame* web_frame);
+ void RequestIDBDatabaseCreateObjectStore(
+ const string16& name, const string16& keypath, bool auto_increment,
+ WebKit::WebIDBCallbacks* callbacks, int32 idb_database_id);
+
private:
// Message handlers. For each message we send, we need to handle both the
// success and the error case.
@@ -37,11 +41,17 @@ class IndexedDBDispatcher {
int32 idb_database_id);
void OnIndexedDatabaseOpenError(int32 response_id, int code,
const string16& message);
+ void OnIDBDatabaseCreateObjectStoreSuccess(int32 response_id,
+ int32 idb_object_store_id);
+ void OnIDBDatabaseCreateObjectStoreError(int32 response_id, int code,
+ const string16& message);
// Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be
// destroyed and used on the same thread it was created on.
IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer>
indexed_database_open_callbacks_;
+ IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer>
+ idb_database_create_object_store_callbacks_;
DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
};
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698