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

Unified Diff: content/common/indexed_db/proxy_webidbdatabase_impl.cc

Issue 10533057: IPC plumbing for IndexedDB to snapshot metadata to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't CamelCase "metadata" Created 8 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
Index: content/common/indexed_db/proxy_webidbdatabase_impl.cc
diff --git a/content/common/indexed_db/proxy_webidbdatabase_impl.cc b/content/common/indexed_db/proxy_webidbdatabase_impl.cc
index 5e53f7b635c7738c57a94cffb850325c930cb556..f701964cdf38998010f1ccf6698e132707914db9 100644
--- a/content/common/indexed_db/proxy_webidbdatabase_impl.cc
+++ b/content/common/indexed_db/proxy_webidbdatabase_impl.cc
@@ -10,6 +10,7 @@
#include "content/common/indexed_db/proxy_webidbobjectstore_impl.h"
#include "content/common/indexed_db/proxy_webidbtransaction_impl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBMetadata.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
#include "webkit/glue/worker_task_runner.h"
@@ -19,6 +20,7 @@ using WebKit::WebExceptionCode;
using WebKit::WebFrame;
using WebKit::WebIDBCallbacks;
using WebKit::WebIDBDatabaseCallbacks;
+using WebKit::WebIDBDatabaseMetadata;
using WebKit::WebIDBKeyPath;
using WebKit::WebIDBTransaction;
using WebKit::WebString;
@@ -38,6 +40,13 @@ RendererWebIDBDatabaseImpl::~RendererWebIDBDatabaseImpl() {
idb_database_id_));
}
+WebIDBDatabaseMetadata RendererWebIDBDatabaseImpl::metadata() const {
+ content::IndexedDBDatabaseMetadata result;
+ IndexedDBDispatcher::Send(
+ new IndexedDBHostMsg_DatabaseMetadata(idb_database_id_, &result));
+ return WebIDBDatabaseMetadata(result);
+}
+
WebString RendererWebIDBDatabaseImpl::name() const {
string16 result;
IndexedDBDispatcher::Send(

Powered by Google App Engine
This is Rietveld 408576698