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

Unified Diff: chrome/renderer/renderer_webidbobjectstore_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_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webidbobjectstore_impl.cc
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.cc b/chrome/renderer/renderer_webidbobjectstore_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..70e08403adc0407482a5a73ebbdd9df5571e6fee
--- /dev/null
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/renderer/renderer_webidbobjectstore_impl.h"
+
+#include "chrome/common/render_messages.h"
+#include "chrome/renderer/indexed_db_dispatcher.h"
+#include "chrome/renderer/render_thread.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
+
+using WebKit::WebFrame;
+using WebKit::WebIDBCallbacks;
+using WebKit::WebString;
+
+RendererWebIDBObjectStoreImpl::RendererWebIDBObjectStoreImpl(
+ int32 idb_object_store_id)
+ : idb_object_store_id_(idb_object_store_id) {
+}
+
+RendererWebIDBObjectStoreImpl::~RendererWebIDBObjectStoreImpl() {
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBObjectStoreDestroyed(idb_object_store_id_));
+}
+
+WebString RendererWebIDBObjectStoreImpl::name() const {
+ string16 result;
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBObjectStoreName(idb_object_store_id_, &result));
+ return result;
+}
+
+WebString RendererWebIDBObjectStoreImpl::keyPath() const {
+ string16 result;
+ RenderThread::current()->Send(
+ new ViewHostMsg_IDBObjectStoreKeyPath(idb_object_store_id_, &result));
+ return result;
+}
« no previous file with comments | « chrome/renderer/renderer_webidbobjectstore_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698