diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-08 00:32:44 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-08 00:32:44 +0000 |
commit | 07331d79c72e07472722ed527ddfb3ac7f0b2c15 (patch) | |
tree | 51093c3e27efb1140d93282fa087723a01d23619 /chrome/worker/webworker_stub_base.h | |
parent | a0c7147644ac9b90c1730916bdab70d602a40fc9 (diff) | |
download | chromium_src-07331d79c72e07472722ed527ddfb3ac7f0b2c15.zip chromium_src-07331d79c72e07472722ed527ddfb3ac7f0b2c15.tar.gz chromium_src-07331d79c72e07472722ed527ddfb3ac7f0b2c15.tar.bz2 |
Add some more IPC plumbing and scaffolding to support having appcache work in workers. Everything is still stubbed out at runtime (runtime feature is still disabled in the worker process, and the values in the IPC messages are all zero'd out).
* Widen the CreateWorker IPC message sent from the browser to the worker process to contain additional data needed to initialize an appcache for that worker.
* Add a new worker specific WorkerWebApplicationCacheHostImpl class and instantiate one with the initialization data received in the IPC.
* Give the WorkerThread an AppCacheDispatcher.
* Propagate the cmd-line argument to disable the appcache to the worker process.
* Fixup DEPs to show that chrome/workers depends on webkit/appcache
BUG=39368
TEST=thinking about what tests to put together for this CL
Review URL: http://codereview.chromium.org/1719007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/webworker_stub_base.h')
-rw-r--r-- | chrome/worker/webworker_stub_base.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/worker/webworker_stub_base.h b/chrome/worker/webworker_stub_base.h index 397f517..6206c6e 100644 --- a/chrome/worker/webworker_stub_base.h +++ b/chrome/worker/webworker_stub_base.h @@ -6,13 +6,15 @@ #define CHROME_WORKER_WEBWORKER_STUB_BASE_H_ #include "chrome/worker/webworkerclient_proxy.h" +#include "chrome/worker/worker_webapplicationcachehost_impl.h" #include "ipc/ipc_channel.h" // This class is the common base class for both WebWorkerStub and // WebSharedWorkerStub and contains common setup/teardown functionality. class WebWorkerStubBase : public IPC::Channel::Listener { public: - explicit WebWorkerStubBase(int route_id); + WebWorkerStubBase(int route_id, + const WorkerAppCacheInitInfo& appcache_init_info); virtual ~WebWorkerStubBase(); // Invoked when the WebWorkerClientProxy is shutting down. @@ -24,8 +26,12 @@ class WebWorkerStubBase : public IPC::Channel::Listener { WebWorkerClientProxy* client() { return &client_; } + const WorkerAppCacheInitInfo& appcache_init_info() const { + return appcache_init_info_; + } private: int route_id_; + WorkerAppCacheInitInfo appcache_init_info_; // WebWorkerClient that responds to outgoing API calls from the worker object. WebWorkerClientProxy client_; |