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( |