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

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

Issue 545054: Introduce all the plumbing for Session Storage. This mostly consists of crea... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698