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" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 virtual WebKit::WebString defaultLocale() { | 190 virtual WebKit::WebString defaultLocale() { |
191 return ASCIIToUTF16("en-US"); | 191 return ASCIIToUTF16("en-US"); |
192 } | 192 } |
193 | 193 |
194 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( | 194 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
195 const WebKit::WebString& path, unsigned quota) { | 195 const WebKit::WebString& path, unsigned quota) { |
196 return WebKit::WebStorageNamespace::createLocalStorageNamespace(path, | 196 return WebKit::WebStorageNamespace::createLocalStorageNamespace(path, |
197 quota); | 197 quota); |
198 } | 198 } |
199 | 199 |
200 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace() { | |
201 return WebKit::WebStorageNamespace::createSessionStorageNamespace(); | |
202 } | |
203 | |
204 void dispatchStorageEvent(const WebKit::WebString& key, | 200 void dispatchStorageEvent(const WebKit::WebString& key, |
205 const WebKit::WebString& old_value, const WebKit::WebString& new_value, | 201 const WebKit::WebString& old_value, const WebKit::WebString& new_value, |
206 const WebKit::WebString& origin, const WebKit::WebURL& url, | 202 const WebKit::WebString& origin, const WebKit::WebURL& url, |
207 bool is_local_storage) { | 203 bool is_local_storage) { |
208 // TODO(jorlow): Implement | 204 // TODO(jorlow): Implement |
209 if (!is_local_storage) | 205 if (!is_local_storage) |
210 return; | 206 return; |
211 | 207 |
212 if (!dom_storage_event_dispatcher_.get()) { | 208 if (!dom_storage_event_dispatcher_.get()) { |
213 dom_storage_event_dispatcher_.reset( | 209 dom_storage_event_dispatcher_.reset( |
(...skipping 30 matching lines...) Expand all Loading... |
244 SimpleAppCacheSystem appcache_system_; | 240 SimpleAppCacheSystem appcache_system_; |
245 SimpleDatabaseSystem database_system_; | 241 SimpleDatabaseSystem database_system_; |
246 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; | 242 scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_; |
247 | 243 |
248 #if defined(OS_WIN) | 244 #if defined(OS_WIN) |
249 WebKit::WebThemeEngine* active_theme_engine_; | 245 WebKit::WebThemeEngine* active_theme_engine_; |
250 #endif | 246 #endif |
251 }; | 247 }; |
252 | 248 |
253 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 249 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
OLD | NEW |