OLD | NEW |
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" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 WebKit::WebString::fromUTF8("test-shell-resource")); | 79 WebKit::WebString::fromUTF8("test-shell-resource")); |
80 WebKit::WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( | 80 WebKit::WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( |
81 WebKit::WebString::fromUTF8("test-shell-resource")); | 81 WebKit::WebString::fromUTF8("test-shell-resource")); |
82 WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument( | 82 WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument( |
83 WebKit::WebString::fromUTF8("test-shell-resource")); | 83 WebKit::WebString::fromUTF8("test-shell-resource")); |
84 WebScriptController::enableV8SingleThreadMode(); | 84 WebScriptController::enableV8SingleThreadMode(); |
85 WebKit::WebRuntimeFeatures::enableSockets(true); | 85 WebKit::WebRuntimeFeatures::enableSockets(true); |
86 WebKit::WebRuntimeFeatures::enableApplicationCache(true); | 86 WebKit::WebRuntimeFeatures::enableApplicationCache(true); |
87 WebKit::WebRuntimeFeatures::enableDatabase(true); | 87 WebKit::WebRuntimeFeatures::enableDatabase(true); |
88 WebKit::WebRuntimeFeatures::enableDataTransferItems(true); | 88 WebKit::WebRuntimeFeatures::enableDataTransferItems(true); |
89 WebKit::WebRuntimeFeatures::enablePushState(true); | |
90 WebKit::WebRuntimeFeatures::enableNotifications(true); | 89 WebKit::WebRuntimeFeatures::enableNotifications(true); |
91 WebKit::WebRuntimeFeatures::enableTouch(true); | 90 WebKit::WebRuntimeFeatures::enableTouch(true); |
92 WebKit::WebRuntimeFeatures::enableGamepad(true); | 91 WebKit::WebRuntimeFeatures::enableGamepad(true); |
93 | 92 |
94 // Load libraries for media and enable the media player. | 93 // Load libraries for media and enable the media player. |
95 bool enable_media = false; | 94 bool enable_media = false; |
96 FilePath module_path; | 95 FilePath module_path; |
97 if (PathService::Get(base::DIR_MODULE, &module_path)) { | 96 if (PathService::Get(base::DIR_MODULE, &module_path)) { |
98 #if defined(OS_MACOSX) | 97 #if defined(OS_MACOSX) |
99 if (base::mac::AmIBundled()) | 98 if (base::mac::AmIBundled()) |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 488 |
490 WebKit::WebRTCPeerConnectionHandler* | 489 WebKit::WebRTCPeerConnectionHandler* |
491 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( | 490 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( |
492 WebKit::WebRTCPeerConnectionHandlerClient* client) { | 491 WebKit::WebRTCPeerConnectionHandlerClient* client) { |
493 if (shadow_platform_delegate_) | 492 if (shadow_platform_delegate_) |
494 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); | 493 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); |
495 | 494 |
496 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 495 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
497 client); | 496 client); |
498 } | 497 } |
OLD | NEW |