OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/scoped_temp_dir.h" | 7 #include "base/scoped_temp_dir.h" |
8 #include "base/stats_counters.h" | 8 #include "base/stats_counters.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "net/base/cookie_monster.h" | 10 #include "net/base/cookie_monster.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( | 60 WebKit::WebSecurityPolicy::registerURLSchemeAsNoAccess( |
61 WebKit::WebString::fromUTF8("test-shell-resource")); | 61 WebKit::WebString::fromUTF8("test-shell-resource")); |
62 WebScriptController::enableV8SingleThreadMode(); | 62 WebScriptController::enableV8SingleThreadMode(); |
63 WebScriptController::registerExtension( | 63 WebScriptController::registerExtension( |
64 extensions_v8::GearsExtension::Get()); | 64 extensions_v8::GearsExtension::Get()); |
65 WebScriptController::registerExtension( | 65 WebScriptController::registerExtension( |
66 extensions_v8::IntervalExtension::Get()); | 66 extensions_v8::IntervalExtension::Get()); |
67 WebKit::WebRuntimeFeatures::enableSockets(true); | 67 WebKit::WebRuntimeFeatures::enableSockets(true); |
68 WebKit::WebRuntimeFeatures::enableApplicationCache(true); | 68 WebKit::WebRuntimeFeatures::enableApplicationCache(true); |
69 WebKit::WebRuntimeFeatures::enableDatabase(true); | 69 WebKit::WebRuntimeFeatures::enableDatabase(true); |
| 70 WebKit::WebRuntimeFeatures::enableNotifications(true); |
70 | 71 |
71 // Load libraries for media and enable the media player. | 72 // Load libraries for media and enable the media player. |
72 bool enable_media = false; | 73 bool enable_media = false; |
73 FilePath module_path; | 74 FilePath module_path; |
74 if (PathService::Get(base::DIR_MODULE, &module_path)) { | 75 if (PathService::Get(base::DIR_MODULE, &module_path)) { |
75 #if defined(OS_MACOSX) | 76 #if defined(OS_MACOSX) |
76 if (mac_util::AmIBundled()) | 77 if (mac_util::AmIBundled()) |
77 module_path = module_path.DirName().DirName().DirName(); | 78 module_path = module_path.DirName().DirName().DirName(); |
78 #endif | 79 #endif |
79 if (media::InitializeMediaLibrary(module_path)) | 80 if (media::InitializeMediaLibrary(module_path)) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 237 } |
237 | 238 |
238 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() { | 239 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() { |
239 return active_theme_engine_; | 240 return active_theme_engine_; |
240 } | 241 } |
241 #endif | 242 #endif |
242 | 243 |
243 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() { | 244 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() { |
244 return NULL; | 245 return NULL; |
245 } | 246 } |
OLD | NEW |