diff options
-rw-r--r-- | chrome/worker/webworkerclient_proxy.h | 8 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_web_worker.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/chrome/worker/webworkerclient_proxy.h b/chrome/worker/webworkerclient_proxy.h index 1de06c6..430927c 100644 --- a/chrome/worker/webworkerclient_proxy.h +++ b/chrome/worker/webworkerclient_proxy.h @@ -13,6 +13,8 @@ #include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h" namespace WebKit { +class WebApplicationCacheHost; +class WebApplicationCacheHostClient; class WebWorker; } @@ -68,6 +70,12 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient { return NULL; } + virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( + WebKit::WebApplicationCacheHostClient*) { + // TODO(michaeln): Create and initialize an appcache host for our worker. + return NULL; + } + void EnsureWorkerContextTerminates(); private: 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>; |