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

Unified Diff: chrome/renderer/renderer_webidbtransaction_impl.cc

Issue 3165053: Implement IDBTransaction::objectStore (Closed)
Patch Set: 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
Index: chrome/renderer/renderer_webidbtransaction_impl.cc
diff --git a/chrome/renderer/renderer_webidbtransaction_impl.cc b/chrome/renderer/renderer_webidbtransaction_impl.cc
index 8faf9a190dca0d1b675d5dd63a3c03aec8ab91f6..0cdaa33830569275ed4d8ff723529d7babd0d64e 100644
--- a/chrome/renderer/renderer_webidbtransaction_impl.cc
+++ b/chrome/renderer/renderer_webidbtransaction_impl.cc
@@ -4,9 +4,10 @@
#include "chrome/renderer/renderer_webidbtransaction_impl.h"
+#include "chrome/renderer/indexed_db_dispatcher.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/render_thread.h"
-#include "chrome/renderer/indexed_db_dispatcher.h"
+#include "chrome/renderer/renderer_webidbobjectstore_impl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h"
#include "third_party/WebKit/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
@@ -35,9 +36,11 @@ int RendererWebIDBTransactionImpl::mode() const
WebIDBObjectStore* RendererWebIDBTransactionImpl::objectStore(
const WebString& name)
{
- // TODO: implement
- DCHECK(false);
- return 0;
+ int object_store_id;
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBTransactionObjectStore(
+ idb_transaction_id_, name, &object_store_id));
+ return new RendererWebIDBObjectStoreImpl(object_store_id);
}
void RendererWebIDBTransactionImpl::abort()

Powered by Google App Engine
This is Rietveld 408576698