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

Unified Diff: content/browser/shared_worker/shared_worker_host.h

Issue 223583002: Revert of Make DevTools support for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
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 5b2a27baa6a215dff7701a4af011b30fba28fc89..3fdc29f7c9b92ff70c1318bb88701d317b661f59 100644
--- a/content/browser/shared_worker/shared_worker_host.h
+++ b/content/browser/shared_worker/shared_worker_host.h
@@ -28,16 +28,15 @@
// the browser <-> worker communication channel.
class SharedWorkerHost {
public:
- SharedWorkerHost(SharedWorkerInstance* instance,
- SharedWorkerMessageFilter* filter);
+ explicit SharedWorkerHost(SharedWorkerInstance* instance);
~SharedWorkerHost();
// Sends |message| to the SharedWorker.
bool Send(IPC::Message* message);
// Starts the SharedWorker in the renderer process which is associated with
- // |filter_|.
- void Start(bool pause_on_start);
+ // |filter|.
+ void Init(SharedWorkerMessageFilter* filter);
// Returns true iff the given message from a renderer process was forwarded to
// the worker.
@@ -80,7 +79,9 @@
SharedWorkerMessageFilter* container_render_filter() const {
return container_render_filter_;
}
- int process_id() const { return worker_process_id_; }
+ int process_id() const {
+ return container_render_filter_->render_process_id();
+ }
int worker_route_id() const { return worker_route_id_; }
bool load_failed() const { return load_failed_; }
bool closed() const { return closed_; }
@@ -122,7 +123,6 @@
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_;
« no previous file with comments | « content/browser/devtools/worker_devtools_manager.cc ('k') | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698