Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5763)

Unified Diff: chrome/worker/websharedworker_stub.cc

Issue 1719007: Initializing an appcache host in a worker process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/worker/websharedworker_stub.h ('k') | chrome/worker/webworker_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/worker/websharedworker_stub.cc
===================================================================
--- chrome/worker/websharedworker_stub.cc (revision 46627)
+++ chrome/worker/websharedworker_stub.cc (working copy)
@@ -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 @@
// 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;
« no previous file with comments | « chrome/worker/websharedworker_stub.h ('k') | chrome/worker/webworker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698