From d20e0b986707dd49ae7a2cad347f4e50140ec86e Mon Sep 17 00:00:00 2001 From: "hans@chromium.org" Date: Thu, 17 Feb 2011 12:56:09 +0000 Subject: IndexedDB: Allow injection of keys into values via key path. BUG=70118 TEST=browser_tests Review URL: http://codereview.chromium.org/6529021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75258 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/support/test_webkit_client.cc | 8 ++++++++ webkit/support/test_webkit_client.h | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'webkit/support') diff --git a/webkit/support/test_webkit_client.cc b/webkit/support/test_webkit_client.cc index eaa99ba..fd314a4 100644 --- a/webkit/support/test_webkit_client.cc +++ b/webkit/support/test_webkit_client.cc @@ -331,6 +331,14 @@ void TestWebKitClient::createIDBKeysFromSerializedValuesAndKeyPath( keys_out.swap(keys); } +WebKit::WebSerializedScriptValue +TestWebKitClient::injectIDBKeyIntoSerializedValue(const WebKit::WebIDBKey& key, + const WebKit::WebSerializedScriptValue& value, + const WebKit::WebString& keyPath) { + return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue( + key, value, WebKit::WebIDBKeyPath::create(keyPath)); +} + #if defined(OS_WIN) || defined(OS_MACOSX) void TestWebKitClient::SetThemeEngine(WebKit::WebThemeEngine* engine) { active_theme_engine_ = engine ? engine : WebKitClientImpl::themeEngine(); diff --git a/webkit/support/test_webkit_client.h b/webkit/support/test_webkit_client.h index dfe7acf..efeecf6 100644 --- a/webkit/support/test_webkit_client.h +++ b/webkit/support/test_webkit_client.h @@ -67,6 +67,10 @@ class TestWebKitClient : public webkit_glue::WebKitClientImpl { const WebKit::WebVector& values, const WebKit::WebString& keyPath, WebKit::WebVector& keys_out); + virtual WebKit::WebSerializedScriptValue injectIDBKeyIntoSerializedValue( + const WebKit::WebIDBKey& key, + const WebKit::WebSerializedScriptValue& value, + const WebKit::WebString& keyPath); #if defined(OS_WIN) || defined(OS_MACOSX) void SetThemeEngine(WebKit::WebThemeEngine* engine); -- cgit v1.1