summaryrefslogtreecommitdiffstats
path: root/content/worker/websharedworker_stub.h
diff options
context:
space:
mode:
authoryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 09:55:16 +0000
committeryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 09:55:16 +0000
commitb5523b350fa5eee2eaf1aa4fb9bc63f14815539a (patch)
tree2d3c6e3995e3d56453e5271659ac9188f8c1b37b /content/worker/websharedworker_stub.h
parent826392bbf6f5aa5958d9a3a953350ab89b99b6da (diff)
downloadchromium_src-b5523b350fa5eee2eaf1aa4fb9bc63f14815539a.zip
chromium_src-b5523b350fa5eee2eaf1aa4fb9bc63f14815539a.tar.gz
chromium_src-b5523b350fa5eee2eaf1aa4fb9bc63f14815539a.tar.bz2
DevTools: add initial support for shared workers debugging.
WorkerDevToolsManager is a service that is used for managing DevTools connections to DevTools agents in shared workers. It operates on the IO thread. Each debugged shared worker instance has unique devtools id which is used for addressing workers when passing messages between WorkerDevToolsManager and DevToolsManager. WorkerDevToolsManager translates those ids into WorkerProcessHost and worker_routing_id and back. WorkerDevToolsMessageFilter passes worker messages to the WorkerDevToolsManager which in turn forwards them to DevToolsManager on the UI thread where they are dispatched to corresponding DevTools window. Messages from DevTools frontend go through the DevToolsManager which forwards them to WorkerDevToolsManager on the IO thread where they are sent by means of corresponding WorkerProcessHost to the corresponding WorkerDevToolsAgent. BUG=None TEST=None Review URL: http://codereview.chromium.org/7248076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/worker/websharedworker_stub.h')
-rw-r--r--content/worker/websharedworker_stub.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/worker/websharedworker_stub.h b/content/worker/websharedworker_stub.h
index 6083460..dc4ebed 100644
--- a/content/worker/websharedworker_stub.h
+++ b/content/worker/websharedworker_stub.h
@@ -14,6 +14,8 @@ namespace WebKit {
class WebSharedWorker;
}
+class WorkerDevToolsAgent;
+
// This class creates a WebSharedWorker, and translates incoming IPCs to the
// appropriate WebSharedWorker APIs.
class WebSharedWorkerStub : public WebWorkerStubBase {
@@ -39,6 +41,7 @@ class WebSharedWorkerStub : public WebWorkerStubBase {
string16 name_;
bool started_;
GURL url_;
+ scoped_ptr<WorkerDevToolsAgent> worker_devtools_agent_;
typedef std::pair<int, int> PendingConnectInfo;
typedef std::vector<PendingConnectInfo> PendingConnectInfoList;