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

Side by Side Diff: webkit/tools/test_shell/test_shell_webkit_init.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, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell_webkit_init.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/tools/test_shell/test_shell_webkit_init.h" 5 #include "webkit/tools/test_shell/test_shell_webkit_init.h"
6 6
7 #include "base/metrics/stats_counters.h" 7 #include "base/metrics/stats_counters.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "media/base/media.h" 9 #include "media/base/media.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 const WebKit::WebString& path, unsigned quota) { 259 const WebKit::WebString& path, unsigned quota) {
260 return dom_storage_system_.CreateLocalStorageNamespace(); 260 return dom_storage_system_.CreateLocalStorageNamespace();
261 } 261 }
262 262
263 WebKit::WebIDBFactory* TestShellWebKitInit::idbFactory() { 263 WebKit::WebIDBFactory* TestShellWebKitInit::idbFactory() {
264 return WebKit::WebIDBFactory::create(); 264 return WebKit::WebIDBFactory::create();
265 } 265 }
266 266
267 void TestShellWebKitInit::createIDBKeysFromSerializedValuesAndKeyPath( 267 void TestShellWebKitInit::createIDBKeysFromSerializedValuesAndKeyPath(
268 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values, 268 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values,
269 const WebKit::WebString& keyPath, 269 const WebKit::WebIDBKeyPath& keyPath,
270 WebKit::WebVector<WebKit::WebIDBKey>& keys_out) { 270 WebKit::WebVector<WebKit::WebIDBKey>& keys_out) {
271 WebKit::WebVector<WebKit::WebIDBKey> keys(values.size()); 271 WebKit::WebVector<WebKit::WebIDBKey> keys(values.size());
272 for (size_t i = 0; i < values.size(); ++i) { 272 for (size_t i = 0; i < values.size(); ++i) {
273 keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath( 273 keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(
274 values[i], WebKit::WebIDBKeyPath::create(keyPath)); 274 values[i], keyPath);
275 } 275 }
276 keys_out.swap(keys); 276 keys_out.swap(keys);
277 } 277 }
278 278
279 WebKit::WebSerializedScriptValue 279 WebKit::WebSerializedScriptValue
280 TestShellWebKitInit::injectIDBKeyIntoSerializedValue( 280 TestShellWebKitInit::injectIDBKeyIntoSerializedValue(
281 const WebKit::WebIDBKey& key, const WebKit::WebSerializedScriptValue& value, 281 const WebKit::WebIDBKey& key, const WebKit::WebSerializedScriptValue& value,
282 const WebKit::WebString& keyPath) { 282 const WebKit::WebIDBKeyPath& keyPath) {
283 return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue( 283 return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue(
284 key, value, WebKit::WebIDBKeyPath::create(keyPath)); 284 key, value, keyPath);
285 } 285 }
286 286
287 WebKit::WebSharedWorkerRepository* 287 WebKit::WebSharedWorkerRepository*
288 TestShellWebKitInit::sharedWorkerRepository() { 288 TestShellWebKitInit::sharedWorkerRepository() {
289 return NULL; 289 return NULL;
290 } 290 }
291 291
292 WebKit::WebGraphicsContext3D* 292 WebKit::WebGraphicsContext3D*
293 TestShellWebKitInit::createOffscreenGraphicsContext3D( 293 TestShellWebKitInit::createOffscreenGraphicsContext3D(
294 const WebKit::WebGraphicsContext3D::Attributes& attributes) { 294 const WebKit::WebGraphicsContext3D::Attributes& attributes) {
(...skipping 28 matching lines...) Expand all
323 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 323 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
324 return SimpleResourceLoaderBridge::Create(request_info); 324 return SimpleResourceLoaderBridge::Create(request_info);
325 } 325 }
326 326
327 webkit_glue::WebSocketStreamHandleBridge* 327 webkit_glue::WebSocketStreamHandleBridge*
328 TestShellWebKitInit::CreateWebSocketBridge( 328 TestShellWebKitInit::CreateWebSocketBridge(
329 WebKit::WebSocketStreamHandle* handle, 329 WebKit::WebSocketStreamHandle* handle,
330 webkit_glue::WebSocketStreamHandleDelegate* delegate) { 330 webkit_glue::WebSocketStreamHandleDelegate* delegate) {
331 return SimpleSocketStreamBridge::Create(handle, delegate); 331 return SimpleSocketStreamBridge::Create(handle, delegate);
332 } 332 }
OLDNEW
« 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