Chromium Code Reviews| 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..20035b24e10d919df90fad0f9c28b1667a5b72d9 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); |
| + explicit SharedWorkerHost(SharedWorkerInstance* instance, |
|
kinuko
2014/04/01 16:01:05
no need of explicit now
horo
2014/04/02 04:31:57
Done.
|
| + 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_; |