summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 23:52:27 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 23:52:27 +0000
commitd7a18ecba12b794e797762a701b96bed84467dcb (patch)
treef815f3c15e9c886bf1d8745402541b016a5e2f17 /webkit
parent5225e060ae6a708d9bec85c895cb6531083ceb6a (diff)
downloadchromium_src-d7a18ecba12b794e797762a701b96bed84467dcb.zip
chromium_src-d7a18ecba12b794e797762a701b96bed84467dcb.tar.gz
chromium_src-d7a18ecba12b794e797762a701b96bed84467dcb.tar.bz2
Ground work for making appcache work in workers.
Put in place a noop impl of createApplicationCacheHost() on all WebCommonWorkerClient subclasses. That factory method is soon to be added to the WebKit::WebCommonWorkerClient class as a pure virtual. Adding these methods in advance so it builds when that pure virtual shows up later. BUG=39368 TEST=none Review URL: http://codereview.chromium.org/1729015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_web_worker.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_web_worker.h b/webkit/tools/test_shell/test_web_worker.h
index b46288c..7db70ac 100644
--- a/webkit/tools/test_shell/test_web_worker.h
+++ b/webkit/tools/test_shell/test_web_worker.h
@@ -12,11 +12,15 @@
#include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h"
namespace WebKit {
+class WebApplicationCacheHost;
+class WebApplicationCacheHostClient;
class WebNotificationPresenter;
class WebString;
class WebURL;
}
+// WebWorkers are not functional in test_shell. This class effectively
+// stubs things out.
class TestWebWorker : public WebKit::WebWorker,
public WebKit::WebWorkerClient,
public base::RefCounted<TestWebWorker> {
@@ -74,6 +78,10 @@ class TestWebWorker : public WebKit::WebWorker,
virtual WebKit::WebNotificationPresenter* notificationPresenter() {
return NULL;
}
+ virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
+ WebKit::WebApplicationCacheHostClient*) {
+ return NULL;
+ }
private:
friend class base::RefCounted<TestWebWorker>;