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

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

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IndexedDBKeyPath to content namespace, formatting nits. Created 8 years, 8 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 c1e407806ff00036f9213136e9f2388b73c16027..5e53f7b635c7738c57a94cffb850325c930cb556 100644
--- a/content/common/indexed_db/proxy_webidbdatabase_impl.cc
+++ b/content/common/indexed_db/proxy_webidbdatabase_impl.cc
@@ -9,6 +9,7 @@
#include "content/common/indexed_db/indexed_db_dispatcher.h"
#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/platform/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
#include "webkit/glue/worker_task_runner.h"
@@ -18,6 +19,7 @@ using WebKit::WebExceptionCode;
using WebKit::WebFrame;
using WebKit::WebIDBCallbacks;
using WebKit::WebIDBDatabaseCallbacks;
+using WebKit::WebIDBKeyPath;
using WebKit::WebIDBTransaction;
using WebKit::WebString;
using WebKit::WebVector;
@@ -64,13 +66,13 @@ WebDOMStringList RendererWebIDBDatabaseImpl::objectStoreNames() const {
WebKit::WebIDBObjectStore* RendererWebIDBDatabaseImpl::createObjectStore(
const WebKit::WebString& name,
- const WebKit::WebString& key_path,
+ const WebKit::WebIDBKeyPath& key_path,
bool auto_increment,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
IndexedDBHostMsg_DatabaseCreateObjectStore_Params params;
params.name = name;
- params.key_path = key_path;
+ params.key_path = content::IndexedDBKeyPath(key_path);
params.auto_increment = auto_increment;
params.transaction_id = IndexedDBDispatcher::TransactionId(transaction);
params.idb_database_id = idb_database_id_;
« no previous file with comments | « content/common/indexed_db/proxy_webidbdatabase_impl.h ('k') | content/common/indexed_db/proxy_webidbindex_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698