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

Unified Diff: chrome/renderer/renderer_webidbdatabase_impl.cc

Issue 3163028: Fix compilation errors of 56862 (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix include path (again) Created 10 years, 4 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_webidbfactory_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 0f07369c402a2ae3f4fd28c7a6b9487b4aadbc38..7bfaf5c085b8c7f86d0e95717bfe6ba2572e5848 100644
--- a/chrome/renderer/renderer_webidbdatabase_impl.cc
+++ b/chrome/renderer/renderer_webidbdatabase_impl.cc
@@ -7,11 +7,13 @@
#include "chrome/common/render_messages.h"
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/indexed_db_dispatcher.h"
+#include "chrome/renderer/renderer_webidbtransaction_impl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
using WebKit::WebDOMStringList;
using WebKit::WebFrame;
using WebKit::WebIDBCallbacks;
+using WebKit::WebIDBTransaction;
using WebKit::WebString;
using WebKit::WebVector;
@@ -67,3 +69,18 @@ void RendererWebIDBDatabaseImpl::createObjectStore(
dispatcher->RequestIDBDatabaseCreateObjectStore(
name, key_path, auto_increment, callbacks, idb_database_id_);
}
+
+WebKit::WebIDBTransaction* RendererWebIDBDatabaseImpl::transaction(
+ const WebDOMStringList& names, unsigned short mode,
+ unsigned long timeout) {
+ std::vector<string16> object_stores(names.length());
+ for (unsigned int i = 0; i < names.length(); ++i) {
+ object_stores.push_back(names.item(i));
+ }
+
+ int transaction_id;
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBDatabaseTransaction(
+ idb_database_id_, object_stores, mode, timeout, &transaction_id));
+ return new RendererWebIDBTransactionImpl(transaction_id);
+}
« no previous file with comments | « chrome/renderer/renderer_webidbdatabase_impl.h ('k') | chrome/renderer/renderer_webidbfactory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698