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/websharedworker_stub.cc | |
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/websharedworker_stub.cc')
-rw-r--r-- | chrome/worker/websharedworker_stub.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/worker/websharedworker_stub.cc b/chrome/worker/websharedworker_stub.cc index f398244..32b5b38 100644 --- a/chrome/worker/websharedworker_stub.cc +++ b/chrome/worker/websharedworker_stub.cc @@ -11,14 +11,13 @@ #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" WebSharedWorkerStub::WebSharedWorkerStub( - const string16& name, int route_id) - : WebWorkerStubBase(route_id), + const string16& name, int route_id, + const WorkerAppCacheInitInfo& appcache_init_info) + : WebWorkerStubBase(route_id, appcache_init_info), name_(name), started_(false) { - // TODO(atwilson): Add support for NaCl when they support MessagePorts. impl_ = WebKit::WebSharedWorker::create(client()); - } WebSharedWorkerStub::~WebSharedWorkerStub() { @@ -44,6 +43,10 @@ void WebSharedWorkerStub::OnStartWorkerContext( // try to start it simultaneously). if (started_) return; + + // TODO(michaeln): Fixup this callsite once + // https://bugs.webkit.org/show_bug.cgi?id=38605 + // has landed and rolled into view. impl_->startWorkerContext(url, name_, user_agent, source_code); started_ = true; |