diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-25 12:59:36 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-25 12:59:36 +0000 |
commit | 98f661180caf2e8118b2c3b440b65dec17e39b1b (patch) | |
tree | 8ee89dd444d52815678c61b813007735a24b89cd /content/browser/devtools/worker_devtools_manager.cc | |
parent | ea0e4696055129fff54dea73be1b2b4f5699767c (diff) | |
download | chromium_src-98f661180caf2e8118b2c3b440b65dec17e39b1b.zip chromium_src-98f661180caf2e8118b2c3b440b65dec17e39b1b.tar.gz chromium_src-98f661180caf2e8118b2c3b440b65dec17e39b1b.tar.bz2 |
DevTools: introduce public content::DevToolsAgentHost.
BUG=166824
TBR=jam
Review URL: https://chromiumcodereview.appspot.com/11665025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/devtools/worker_devtools_manager.cc')
-rw-r--r-- | content/browser/devtools/worker_devtools_manager.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/content/browser/devtools/worker_devtools_manager.cc b/content/browser/devtools/worker_devtools_manager.cc index 62079fb..a6c9a79 100644 --- a/content/browser/devtools/worker_devtools_manager.cc +++ b/content/browser/devtools/worker_devtools_manager.cc @@ -9,14 +9,13 @@ #include "base/bind.h" #include "base/lazy_instance.h" -#include "content/browser/devtools/devtools_agent_host.h" +#include "content/browser/devtools/devtools_agent_host_impl.h" #include "content/browser/devtools/devtools_manager_impl.h" #include "content/browser/devtools/worker_devtools_message_filter.h" #include "content/browser/worker_host/worker_service_impl.h" #include "content/common/devtools_messages.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/child_process_data.h" -#include "content/public/browser/devtools_agent_host_registry.h" #include "content/public/common/process_type.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h" @@ -28,7 +27,7 @@ namespace content { // Called on the UI thread. // static -DevToolsAgentHost* DevToolsAgentHostRegistry::GetDevToolsAgentHostForWorker( +DevToolsAgentHost* DevToolsAgentHost::GetForWorker( int worker_process_id, int worker_route_id) { return WorkerDevToolsManager::GetDevToolsAgentHostForWorker( @@ -57,7 +56,7 @@ struct WorkerDevToolsManager::TerminatedInspectedWorker { class WorkerDevToolsManager::WorkerDevToolsAgentHost - : public DevToolsAgentHost { + : public DevToolsAgentHostImpl { public: explicit WorkerDevToolsAgentHost(WorkerId worker_id) : has_worker_id_(false) { @@ -87,7 +86,7 @@ class WorkerDevToolsManager::WorkerDevToolsAgentHost } virtual void Detach() { - DevToolsAgentHost::Detach(); + DevToolsAgentHostImpl::Detach(); Destroy(); } @@ -127,7 +126,7 @@ class WorkerDevToolsManager::WorkerDevToolsAgentHost worker_process_id, worker_route_id, *message); } - // DevToolsAgentHost implementation. + // DevToolsAgentHostImpl implementation. virtual void SendMessageToAgent(IPC::Message* message) OVERRIDE { if (!has_worker_id_) { delete message; @@ -144,7 +143,6 @@ class WorkerDevToolsManager::WorkerDevToolsAgentHost virtual void NotifyClientAttaching() OVERRIDE {} virtual void NotifyClientDetaching() OVERRIDE {} - virtual int GetRenderProcessId() OVERRIDE { return -1; } bool has_worker_id_; WorkerId worker_id_; |