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

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

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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
OLDNEW
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 #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 "third_party/WebKit/WebKit/chromium/public/WebData.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebData.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h"
17 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h" 17 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h"
18 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" 18 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h"
19 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h"
20 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityPolicy.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityPolicy.h"
21 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h" 21 #include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h"
22 #include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h" 22 #include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h"
23 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h"
24 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 24 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
25 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 25 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
26 #include "webkit/appcache/web_application_cache_host_impl.h"
27 #include "webkit/database/vfs_backend.h" 26 #include "webkit/database/vfs_backend.h"
28 #include "webkit/extensions/v8/gears_extension.h" 27 #include "webkit/extensions/v8/gears_extension.h"
29 #include "webkit/extensions/v8/interval_extension.h" 28 #include "webkit/extensions/v8/interval_extension.h"
30 #include "webkit/glue/webclipboard_impl.h" 29 #include "webkit/glue/webclipboard_impl.h"
31 #include "webkit/glue/webkit_glue.h" 30 #include "webkit/glue/webkit_glue.h"
32 #include "webkit/glue/webkitclient_impl.h" 31 #include "webkit/glue/webkitclient_impl.h"
33 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 32 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
34 #include "webkit/tools/test_shell/simple_appcache_system.h" 33 #include "webkit/tools/test_shell/simple_appcache_system.h"
35 #include "webkit/tools/test_shell/simple_database_system.h" 34 #include "webkit/tools/test_shell/simple_database_system.h"
36 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 35 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 quota); 207 quota);
209 } 208 }
210 209
211 void dispatchStorageEvent(const WebKit::WebString& key, 210 void dispatchStorageEvent(const WebKit::WebString& key,
212 const WebKit::WebString& old_value, const WebKit::WebString& new_value, 211 const WebKit::WebString& old_value, const WebKit::WebString& new_value,
213 const WebKit::WebString& origin, const WebKit::WebURL& url, 212 const WebKit::WebString& origin, const WebKit::WebURL& url,
214 bool is_local_storage) { 213 bool is_local_storage) {
215 // The event is dispatched by the proxy. 214 // The event is dispatched by the proxy.
216 } 215 }
217 216
218 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
219 WebKit::WebApplicationCacheHostClient* client) {
220 return SimpleAppCacheSystem::CreateApplicationCacheHost(client);
221 }
222
223 #if defined(OS_WIN) 217 #if defined(OS_WIN)
224 void SetThemeEngine(WebKit::WebThemeEngine* engine) { 218 void SetThemeEngine(WebKit::WebThemeEngine* engine) {
225 active_theme_engine_ = engine ? engine : WebKitClientImpl::themeEngine(); 219 active_theme_engine_ = engine ? engine : WebKitClientImpl::themeEngine();
226 } 220 }
227 221
228 virtual WebKit::WebThemeEngine *themeEngine() { 222 virtual WebKit::WebThemeEngine *themeEngine() {
229 return active_theme_engine_; 223 return active_theme_engine_;
230 } 224 }
231 #endif 225 #endif
232 226
(...skipping 13 matching lines...) Expand all
246 SimpleAppCacheSystem appcache_system_; 240 SimpleAppCacheSystem appcache_system_;
247 SimpleDatabaseSystem database_system_; 241 SimpleDatabaseSystem database_system_;
248 SimpleWebCookieJarImpl cookie_jar_; 242 SimpleWebCookieJarImpl cookie_jar_;
249 243
250 #if defined(OS_WIN) 244 #if defined(OS_WIN)
251 WebKit::WebThemeEngine* active_theme_engine_; 245 WebKit::WebThemeEngine* active_theme_engine_;
252 #endif 246 #endif
253 }; 247 };
254 248
255 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 249 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698