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

Side by Side Diff: webkit/tools/test_shell/test_shell_webkit_init.cc

Issue 10914102: history.{push,replace}State should no longer be V8EnabledAtRuntime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/support/test_webkit_platform_support.cc ('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 20 matching lines...) Expand all
31 WebKit::initialize(this); 31 WebKit::initialize(this);
32 WebKit::setLayoutTestMode(layout_test_mode); 32 WebKit::setLayoutTestMode(layout_test_mode);
33 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal( 33 WebKit::WebSecurityPolicy::registerURLSchemeAsLocal(
34 WebKit::WebString::fromUTF8("test-shell-resource")); 34 WebKit::WebString::fromUTF8("test-shell-resource"));
35 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( 35 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess(
36 WebKit::WebString::fromUTF8("test-shell-resource")); 36 WebKit::WebString::fromUTF8("test-shell-resource"));
37 WebKit::WebScriptController::enableV8SingleThreadMode(); 37 WebKit::WebScriptController::enableV8SingleThreadMode();
38 WebKit::WebRuntimeFeatures::enableSockets(true); 38 WebKit::WebRuntimeFeatures::enableSockets(true);
39 WebKit::WebRuntimeFeatures::enableApplicationCache(true); 39 WebKit::WebRuntimeFeatures::enableApplicationCache(true);
40 WebKit::WebRuntimeFeatures::enableDatabase(true); 40 WebKit::WebRuntimeFeatures::enableDatabase(true);
41 WebKit::WebRuntimeFeatures::enablePushState(true);
42 WebKit::WebRuntimeFeatures::enableNotifications(true); 41 WebKit::WebRuntimeFeatures::enableNotifications(true);
43 WebKit::WebRuntimeFeatures::enableTouch(true); 42 WebKit::WebRuntimeFeatures::enableTouch(true);
44 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true); 43 WebKit::WebRuntimeFeatures::enableIndexedDatabase(true);
45 WebKit::WebRuntimeFeatures::enableSpeechInput(true); 44 WebKit::WebRuntimeFeatures::enableSpeechInput(true);
46 WebKit::WebRuntimeFeatures::enableFileSystem(true); 45 WebKit::WebRuntimeFeatures::enableFileSystem(true);
47 46
48 // TODO(hwennborg): Enable this once the implementation supports it. 47 // TODO(hwennborg): Enable this once the implementation supports it.
49 WebKit::WebRuntimeFeatures::enableDeviceMotion(false); 48 WebKit::WebRuntimeFeatures::enableDeviceMotion(false);
50 WebKit::WebRuntimeFeatures::enableDeviceOrientation(true); 49 WebKit::WebRuntimeFeatures::enableDeviceOrientation(true);
51 50
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 302 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
304 return SimpleResourceLoaderBridge::Create(request_info); 303 return SimpleResourceLoaderBridge::Create(request_info);
305 } 304 }
306 305
307 webkit_glue::WebSocketStreamHandleBridge* 306 webkit_glue::WebSocketStreamHandleBridge*
308 TestShellWebKitInit::CreateWebSocketBridge( 307 TestShellWebKitInit::CreateWebSocketBridge(
309 WebKit::WebSocketStreamHandle* handle, 308 WebKit::WebSocketStreamHandle* handle,
310 webkit_glue::WebSocketStreamHandleDelegate* delegate) { 309 webkit_glue::WebSocketStreamHandleDelegate* delegate) {
311 return SimpleSocketStreamBridge::Create(handle, delegate); 310 return SimpleSocketStreamBridge::Create(handle, delegate);
312 } 311 }
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698