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

Side by Side Diff: webkit/support/test_webkit_platform_support.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 unified diff | Download patch | Annotate | Revision Log
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/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/metrics/stats_counters.h" 8 #include "base/metrics/stats_counters.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "media/base/media.h" 13 #include "media/base/media.h"
14 #include "net/cookies/cookie_monster.h" 14 #include "net/cookies/cookie_monster.h"
15 #include "net/http/http_cache.h" 15 #include "net/http/http_cache.h"
16 #include "net/test/test_server.h" 16 #include "net/test/test_server.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevi ce.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevi ce.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h " 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h "
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat cher.h" 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat cher.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h " 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
30 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
32 #include "v8/include/v8.h" 35 #include "v8/include/v8.h"
33 #include "webkit/appcache/web_application_cache_host_impl.h" 36 #include "webkit/appcache/web_application_cache_host_impl.h"
34 #include "webkit/database/vfs_backend.h" 37 #include "webkit/database/vfs_backend.h"
35 #include "webkit/glue/simple_webmimeregistry_impl.h" 38 #include "webkit/glue/simple_webmimeregistry_impl.h"
36 #include "webkit/glue/webclipboard_impl.h" 39 #include "webkit/glue/webclipboard_impl.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 private: 373 private:
371 scoped_ptr<WebIDBFactory> factory_; 374 scoped_ptr<WebIDBFactory> factory_;
372 ScopedTempDir indexed_db_dir_; 375 ScopedTempDir indexed_db_dir_;
373 WebString data_dir_; 376 WebString data_dir_;
374 }; 377 };
375 378
376 WebKit::WebIDBFactory* TestWebKitPlatformSupport::idbFactory() { 379 WebKit::WebIDBFactory* TestWebKitPlatformSupport::idbFactory() {
377 return new TestWebIDBFactory(); 380 return new TestWebIDBFactory();
378 } 381 }
379 382
383 void TestWebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath(
384 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values,
385 const WebKit::WebIDBKeyPath& keyPath,
386 WebKit::WebVector<WebKit::WebIDBKey>& keys_out) {
387 WebKit::WebVector<WebKit::WebIDBKey> keys(values.size());
388 for (size_t i = 0; i < values.size(); ++i) {
389 keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(
390 values[i], keyPath);
391 }
392 keys_out.swap(keys);
393 }
394
395 WebKit::WebSerializedScriptValue
396 TestWebKitPlatformSupport::injectIDBKeyIntoSerializedValue(
397 const WebKit::WebIDBKey& key,
398 const WebKit::WebSerializedScriptValue& value,
399 const WebKit::WebIDBKeyPath& keyPath) {
400 return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue(
401 key, value, keyPath);
402 }
403
380 #if defined(OS_WIN) || defined(OS_MACOSX) 404 #if defined(OS_WIN) || defined(OS_MACOSX)
381 void TestWebKitPlatformSupport::SetThemeEngine(WebKit::WebThemeEngine* engine) { 405 void TestWebKitPlatformSupport::SetThemeEngine(WebKit::WebThemeEngine* engine) {
382 active_theme_engine_ = engine ? 406 active_theme_engine_ = engine ?
383 engine : WebKitPlatformSupportImpl::themeEngine(); 407 engine : WebKitPlatformSupportImpl::themeEngine();
384 } 408 }
385 409
386 WebKit::WebThemeEngine* TestWebKitPlatformSupport::themeEngine() { 410 WebKit::WebThemeEngine* TestWebKitPlatformSupport::themeEngine() {
387 return active_theme_engine_; 411 return active_theme_engine_;
388 } 412 }
389 #endif 413 #endif
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 513
490 WebKit::WebRTCPeerConnectionHandler* 514 WebKit::WebRTCPeerConnectionHandler*
491 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( 515 TestWebKitPlatformSupport::createRTCPeerConnectionHandler(
492 WebKit::WebRTCPeerConnectionHandlerClient* client) { 516 WebKit::WebRTCPeerConnectionHandlerClient* client) {
493 if (shadow_platform_delegate_) 517 if (shadow_platform_delegate_)
494 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); 518 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client);
495 519
496 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( 520 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler(
497 client); 521 client);
498 } 522 }
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698