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

Unified Diff: webkit/tools/test_shell/test_shell_webkit_init.cc

Issue 10873028: Revert 152873 - Remove all the indexeddb-related utility process code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_webkit_init.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webkit_init.cc
===================================================================
--- webkit/tools/test_shell/test_shell_webkit_init.cc (revision 152976)
+++ webkit/tools/test_shell/test_shell_webkit_init.cc (working copy)
@@ -264,6 +264,26 @@
return WebKit::WebIDBFactory::create();
}
+void TestShellWebKitInit::createIDBKeysFromSerializedValuesAndKeyPath(
+ const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values,
+ const WebKit::WebIDBKeyPath& keyPath,
+ WebKit::WebVector<WebKit::WebIDBKey>& keys_out) {
+ WebKit::WebVector<WebKit::WebIDBKey> keys(values.size());
+ for (size_t i = 0; i < values.size(); ++i) {
+ keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(
+ values[i], keyPath);
+ }
+ keys_out.swap(keys);
+}
+
+WebKit::WebSerializedScriptValue
+TestShellWebKitInit::injectIDBKeyIntoSerializedValue(
+ const WebKit::WebIDBKey& key, const WebKit::WebSerializedScriptValue& value,
+ const WebKit::WebIDBKeyPath& keyPath) {
+ return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue(
+ key, value, keyPath);
+}
+
WebKit::WebSharedWorkerRepository*
TestShellWebKitInit::sharedWorkerRepository() {
return NULL;
« no previous file with comments | « webkit/tools/test_shell/test_shell_webkit_init.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698