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/stats_counters.h" | 10 #include "base/stats_counters.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "media/base/media.h" | 12 #include "media/base/media.h" |
13 #include "webkit/api/public/WebData.h" | 13 #include "webkit/api/public/WebData.h" |
14 #include "webkit/api/public/WebKit.h" | 14 #include "webkit/api/public/WebKit.h" |
| 15 #include "webkit/api/public/WebStorageArea.h" |
| 16 #include "webkit/api/public/WebStorageNamespace.h" |
15 #include "webkit/api/public/WebString.h" | 17 #include "webkit/api/public/WebString.h" |
16 #include "webkit/api/public/WebURL.h" | 18 #include "webkit/api/public/WebURL.h" |
17 #include "webkit/glue/simple_webmimeregistry_impl.h" | 19 #include "webkit/glue/simple_webmimeregistry_impl.h" |
18 #include "webkit/glue/webclipboard_impl.h" | 20 #include "webkit/glue/webclipboard_impl.h" |
19 #include "webkit/glue/webkit_glue.h" | 21 #include "webkit/glue/webkit_glue.h" |
20 #include "webkit/glue/webkitclient_impl.h" | 22 #include "webkit/glue/webkitclient_impl.h" |
21 #include "webkit/extensions/v8/gears_extension.h" | 23 #include "webkit/extensions/v8/gears_extension.h" |
22 #include "webkit/extensions/v8/interval_extension.h" | 24 #include "webkit/extensions/v8/interval_extension.h" |
23 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 25 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
24 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 26 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 "\x82"; | 121 "\x82"; |
120 return WebKit::WebData(red_square, arraysize(red_square)); | 122 return WebKit::WebData(red_square, arraysize(red_square)); |
121 } | 123 } |
122 return webkit_glue::WebKitClientImpl::loadResource(name); | 124 return webkit_glue::WebKitClientImpl::loadResource(name); |
123 } | 125 } |
124 | 126 |
125 virtual WebKit::WebString defaultLocale() { | 127 virtual WebKit::WebString defaultLocale() { |
126 return ASCIIToUTF16("en-US"); | 128 return ASCIIToUTF16("en-US"); |
127 } | 129 } |
128 | 130 |
| 131 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
| 132 const WebKit::WebString& path) { |
| 133 return WebKit::WebStorageNamespace::createLocalStorageNamespace(path); |
| 134 } |
| 135 |
| 136 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace() { |
| 137 return WebKit::WebStorageNamespace::createSessionStorageNamespace(); |
| 138 } |
| 139 |
129 private: | 140 private: |
130 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; | 141 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; |
131 scoped_ptr<WebKit::WebClipboard> clipboard_; | 142 scoped_ptr<WebKit::WebClipboard> clipboard_; |
132 }; | 143 }; |
133 | 144 |
134 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 145 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
OLD | NEW |