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

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

Issue 196503005: Make DevTools support for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce SharedWorkerDevToolsManager 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 4292d74820e279337b2075c488a9974572ba9ece..edb587be1b3d834cdbc05c3bdf19b2a6c7be96de 100644
--- a/content/browser/shared_worker/shared_worker_host.h
+++ b/content/browser/shared_worker/shared_worker_host.h
@@ -20,6 +20,7 @@ class Message;
namespace content {
class SharedWorkerMessageFilter;
class SharedWorkerInstance;
+class WorkerDevToolsMessageHandler;
// The SharedWorkerHost is the interface that represents the browser side of
// the browser <-> worker communication channel.
@@ -71,9 +72,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_; }
private:
@@ -86,7 +85,9 @@ class SharedWorkerHost {
std::vector<std::pair<int, int> > GetRenderFrameIDsForWorker();
scoped_ptr<SharedWorkerInstance> instance_;
+ scoped_refptr<WorkerDevToolsMessageHandler> dev_tools_handler_;
SharedWorkerMessageFilter* container_render_filter_;
+ int worker_process_id_;
int worker_route_id_;
DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
};

Powered by Google App Engine
This is Rietveld 408576698