Index: content/browser/shared_worker/shared_worker_host.h |
diff --git a/content/browser/shared_worker/shared_worker_host.h b/content/browser/shared_worker/shared_worker_host.h |
index 3fdc29f7c9b92ff70c1318bb88701d317b661f59..5b2a27baa6a215dff7701a4af011b30fba28fc89 100644 |
--- a/content/browser/shared_worker/shared_worker_host.h |
+++ b/content/browser/shared_worker/shared_worker_host.h |
@@ -28,15 +28,16 @@ class SharedWorkerInstance; |
// the browser <-> worker communication channel. |
class SharedWorkerHost { |
public: |
- explicit SharedWorkerHost(SharedWorkerInstance* instance); |
+ SharedWorkerHost(SharedWorkerInstance* instance, |
+ SharedWorkerMessageFilter* filter); |
~SharedWorkerHost(); |
// Sends |message| to the SharedWorker. |
bool Send(IPC::Message* message); |
// Starts the SharedWorker in the renderer process which is associated with |
- // |filter|. |
- void Init(SharedWorkerMessageFilter* filter); |
+ // |filter_|. |
+ void Start(bool pause_on_start); |
// Returns true iff the given message from a renderer process was forwarded to |
// the worker. |
@@ -79,9 +80,7 @@ class SharedWorkerHost { |
SharedWorkerMessageFilter* container_render_filter() const { |
return container_render_filter_; |
} |
- int process_id() const { |
- return container_render_filter_->render_process_id(); |
- } |
+ int process_id() const { return worker_process_id_; } |
int worker_route_id() const { return worker_route_id_; } |
bool load_failed() const { return load_failed_; } |
bool closed() const { return closed_; } |
@@ -123,6 +122,7 @@ class SharedWorkerHost { |
scoped_refptr<WorkerDocumentSet> worker_document_set_; |
FilterList filters_; |
SharedWorkerMessageFilter* container_render_filter_; |
+ int worker_process_id_; |
int worker_route_id_; |
bool load_failed_; |
bool closed_; |