OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
7 | 7 |
8 #include "base/file_util.h" | 8 #include "base/file_util.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/stats_counters.h" | 11 #include "base/stats_counters.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "media/base/media.h" | 13 #include "media/base/media.h" |
14 #include "webkit/api/public/WebData.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
15 #include "webkit/api/public/WebRuntimeFeatures.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h" |
16 #include "webkit/api/public/WebKit.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
17 #include "webkit/api/public/WebScriptController.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h" |
18 #include "webkit/api/public/WebSecurityPolicy.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityPolicy.h" |
19 #include "webkit/api/public/WebStorageArea.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" |
20 #include "webkit/api/public/WebStorageEventDispatcher.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h" |
21 #include "webkit/api/public/WebStorageNamespace.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h" |
22 #include "webkit/api/public/WebString.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
23 #include "webkit/api/public/WebURL.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
24 #include "webkit/appcache/web_application_cache_host_impl.h" | 24 #include "webkit/appcache/web_application_cache_host_impl.h" |
25 #include "webkit/database/vfs_backend.h" | 25 #include "webkit/database/vfs_backend.h" |
26 #include "webkit/extensions/v8/gears_extension.h" | 26 #include "webkit/extensions/v8/gears_extension.h" |
27 #include "webkit/extensions/v8/interval_extension.h" | 27 #include "webkit/extensions/v8/interval_extension.h" |
28 #include "webkit/glue/simple_webmimeregistry_impl.h" | 28 #include "webkit/glue/simple_webmimeregistry_impl.h" |
29 #include "webkit/glue/webclipboard_impl.h" | 29 #include "webkit/glue/webclipboard_impl.h" |
30 #include "webkit/glue/webkit_glue.h" | 30 #include "webkit/glue/webkit_glue.h" |
31 #include "webkit/glue/webkitclient_impl.h" | 31 #include "webkit/glue/webkitclient_impl.h" |
32 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 32 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
33 #include "webkit/tools/test_shell/simple_appcache_system.h" | 33 #include "webkit/tools/test_shell/simple_appcache_system.h" |
34 #include "webkit/tools/test_shell/simple_database_system.h" | 34 #include "webkit/tools/test_shell/simple_database_system.h" |
35 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 35 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
36 #include "v8/include/v8.h" | 36 #include "v8/include/v8.h" |
37 | 37 |
38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
39 #include "webkit/api/public/win/WebThemeEngine.h" | 39 #include "third_party/WebKit/WebKit/chromium/public/win/WebThemeEngine.h" |
40 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" | 40 #include "webkit/tools/test_shell/test_shell_webthemeengine.h" |
41 #endif | 41 #endif |
42 | 42 |
43 class TestShellWebKitInit : public webkit_glue::WebKitClientImpl { | 43 class TestShellWebKitInit : public webkit_glue::WebKitClientImpl { |
44 public: | 44 public: |
45 explicit TestShellWebKitInit(bool layout_test_mode) { | 45 explicit TestShellWebKitInit(bool layout_test_mode) { |
46 v8::V8::SetCounterFunction(StatsTable::FindLocation); | 46 v8::V8::SetCounterFunction(StatsTable::FindLocation); |
47 | 47 |
48 WebKit::initialize(this); | 48 WebKit::initialize(this); |
49 WebKit::setLayoutTestMode(layout_test_mode); | 49 WebKit::setLayoutTestMode(layout_test_mode); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 SimpleAppCacheSystem appcache_system_; | 239 SimpleAppCacheSystem appcache_system_; |
240 SimpleDatabaseSystem database_system_; | 240 SimpleDatabaseSystem database_system_; |
241 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 241 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
242 | 242 |
243 #if defined(OS_WIN) | 243 #if defined(OS_WIN) |
244 WebKit::WebThemeEngine* active_theme_engine_; | 244 WebKit::WebThemeEngine* active_theme_engine_; |
245 #endif | 245 #endif |
246 }; | 246 }; |
247 | 247 |
248 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 248 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
OLD | NEW |