summaryrefslogtreecommitdiffstats
path: root/chrome/worker
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 05:44:40 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 05:44:40 +0000
commitc61cc652f61fe89b5b1ccb7156896ba11cc0c7f1 (patch)
tree8f159443ffcb4cfad6ab1b64a6cdf70b297428c9 /chrome/worker
parentf244388daae810a179fe229a6da4a33344b68fa3 (diff)
downloadchromium_src-c61cc652f61fe89b5b1ccb7156896ba11cc0c7f1.zip
chromium_src-c61cc652f61fe89b5b1ccb7156896ba11cc0c7f1.tar.gz
chromium_src-c61cc652f61fe89b5b1ccb7156896ba11cc0c7f1.tar.bz2
First half of http://codereview.chromium.org/274014/show
This fixes storage events in single process mode, fixes a bug due to the glue/webkitclient_impl not being updated when I introduced quota support, introduces a params struct for storage events, and is general cleanup. Submitting this first since the change to add the url param made things bigger than I liked. TBR=darin TEST=none BUG=25427 Review URL: http://codereview.chromium.org/348071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker')
-rw-r--r--chrome/worker/worker_webkitclient_impl.cc22
-rw-r--r--chrome/worker/worker_webkitclient_impl.h7
2 files changed, 27 insertions, 2 deletions
diff --git a/chrome/worker/worker_webkitclient_impl.cc b/chrome/worker/worker_webkitclient_impl.cc
index d86b189..2ba4419 100644
--- a/chrome/worker/worker_webkitclient_impl.cc
+++ b/chrome/worker/worker_webkitclient_impl.cc
@@ -15,6 +15,7 @@ using WebKit::WebMessagePortChannel;
using WebKit::WebMimeRegistry;
using WebKit::WebSandboxSupport;
using WebKit::WebSharedWorkerRepository;
+using WebKit::WebStorageNamespace;
using WebKit::WebString;
using WebKit::WebURL;
@@ -82,8 +83,25 @@ WebString WorkerWebKitClientImpl::defaultLocale() {
return WebString();
}
-WebSharedWorkerRepository*
-WorkerWebKitClientImpl::sharedWorkerRepository() {
+WebStorageNamespace* WorkerWebKitClientImpl::createLocalStorageNamespace(
+ const WebString& path, unsigned quota) {
+ NOTREACHED();
+ return 0;
+}
+
+WebStorageNamespace* WorkerWebKitClientImpl::createSessionStorageNamespace() {
+ NOTREACHED();
+ return 0;
+}
+
+void WorkerWebKitClientImpl::dispatchStorageEvent(
+ const WebString& key, const WebString& old_value,
+ const WebString& new_value, const WebString& origin,
+ bool is_local_storage) {
+ NOTREACHED();
+}
+
+WebSharedWorkerRepository* WorkerWebKitClientImpl::sharedWorkerRepository() {
return 0;
}
diff --git a/chrome/worker/worker_webkitclient_impl.h b/chrome/worker/worker_webkitclient_impl.h
index 209cdac..6fbe716 100644
--- a/chrome/worker/worker_webkitclient_impl.h
+++ b/chrome/worker/worker_webkitclient_impl.h
@@ -28,6 +28,13 @@ class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl,
virtual void prefetchHostName(const WebKit::WebString&);
virtual bool getFileSize(const WebKit::WebString& path, long long& result);
virtual WebKit::WebString defaultLocale();
+ virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(
+ const WebKit::WebString& path, unsigned quota);
+ virtual WebKit::WebStorageNamespace* createSessionStorageNamespace();
+ virtual void dispatchStorageEvent(
+ const WebKit::WebString& key, const WebKit::WebString& old_value,
+ const WebKit::WebString& new_value, const WebKit::WebString& origin,
+ bool is_local_storage);
virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
// WebMimeRegistry methods: