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

Unified Diff: chrome/renderer/renderer_webidbdatabase_impl.cc

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/renderer/renderer_webidbdatabase_impl.h ('k') | chrome/renderer/renderer_webidbobjectstore_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webidbdatabase_impl.cc
diff --git a/chrome/renderer/renderer_webidbdatabase_impl.cc b/chrome/renderer/renderer_webidbdatabase_impl.cc
index bc2821026d0c548d05c4fcc86aab7dec0b2d98f1..140b16fab8d3b40d9472ed4ead3e59d124effcbb 100644
--- a/chrome/renderer/renderer_webidbdatabase_impl.cc
+++ b/chrome/renderer/renderer_webidbdatabase_impl.cc
@@ -7,8 +7,11 @@
#include "chrome/common/render_messages.h"
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/indexed_db_dispatcher.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
using WebKit::WebDOMStringList;
+using WebKit::WebFrame;
+using WebKit::WebIDBCallbacks;
using WebKit::WebString;
using WebKit::WebVector;
@@ -55,3 +58,12 @@ WebDOMStringList RendererWebIDBDatabaseImpl::objectStores() {
}
return webResult;
}
+
+void RendererWebIDBDatabaseImpl::createObjectStore(
+ const WebString& name, const WebString& key_path, bool auto_increment,
+ WebIDBCallbacks* callbacks) {
+ IndexedDBDispatcher* dispatcher =
+ RenderThread::current()->indexed_db_dispatcher();
+ dispatcher->RequestIDBDatabaseCreateObjectStore(
+ name, key_path, auto_increment, callbacks, idb_database_id_);
+}
« no previous file with comments | « chrome/renderer/renderer_webidbdatabase_impl.h ('k') | chrome/renderer/renderer_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698