Index: chrome/browser/devtools/devtools_ui_bindings.h |
diff --git a/chrome/browser/devtools/devtools_ui_bindings.h b/chrome/browser/devtools/devtools_ui_bindings.h |
index e0c5557ae47fe19e969a085d4b78a13e6832aacd..f17dbf5c891b67ab733fafeb5e9df5a4784b9706 100644 |
--- a/chrome/browser/devtools/devtools_ui_bindings.h |
+++ b/chrome/browser/devtools/devtools_ui_bindings.h |
@@ -17,7 +17,7 @@ |
#include "chrome/browser/devtools/devtools_file_helper.h" |
#include "chrome/browser/devtools/devtools_file_system_indexer.h" |
#include "chrome/browser/devtools/devtools_targets_ui.h" |
-#include "content/public/browser/devtools_client_host.h" |
+#include "content/public/browser/devtools_agent_host.h" |
#include "content/public/browser/devtools_frontend_host.h" |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
@@ -27,7 +27,6 @@ class InfoBarService; |
class Profile; |
namespace content { |
-class DevToolsClientHost; |
struct FileChooserParams; |
class WebContents; |
} |
@@ -37,7 +36,7 @@ class DevToolsUIBindings : public content::NotificationObserver, |
public content::DevToolsFrontendHost::Delegate, |
public DevToolsEmbedderMessageDispatcher::Delegate, |
public DevToolsAndroidBridge::DeviceCountListener, |
- public content::DevToolsClientHost { |
+ public content::DevToolsAgentHost::Client { |
public: |
static GURL ApplyThemeToURL(Profile* profile, const GURL& base_url); |
@@ -66,6 +65,7 @@ class DevToolsUIBindings : public content::NotificationObserver, |
content::WebContents* web_contents() { return web_contents_; } |
Profile* profile() { return profile_; } |
+ content::DevToolsAgentHost* agent_host() { return agent_host_.get(); } |
pfeldman
2014/08/07 15:40:30
Lets not expose it.
dgozman
2014/08/07 16:51:51
Done.
|
// Takes ownership over the |delegate|. |
void SetDelegate(Delegate* delegate); |
@@ -73,6 +73,7 @@ class DevToolsUIBindings : public content::NotificationObserver, |
const base::Value* arg1, |
const base::Value* arg2, |
const base::Value* arg3); |
+ void InspectAgentHost(content::DevToolsAgentHost* agent_host); |
pfeldman
2014/08/07 15:40:30
AttachTo(DTAH)
dgozman
2014/08/07 16:51:51
Done.
|
private: |
// content::NotificationObserver overrides. |
virtual void Observe(int type, |
@@ -85,10 +86,13 @@ class DevToolsUIBindings : public content::NotificationObserver, |
virtual void HandleMessageFromDevToolsFrontendToBackend( |
const std::string& message) OVERRIDE; |
- // content::DevToolsClientHost implementation. |
- virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; |
- virtual void InspectedContentsClosing() OVERRIDE; |
- virtual void ReplacedWithAnotherClient() OVERRIDE; |
+ // content::DevToolsAgentHost::Client implementation. |
+ virtual void SendMessageFromAgentHost( |
pfeldman
2014/08/07 15:40:30
DispatchProtocolMessage
dgozman
2014/08/07 16:51:51
Done.
|
+ content::DevToolsAgentHost* agent_host, |
+ const std::string& message) OVERRIDE; |
+ virtual void AgentHostDetached( |
pfeldman
2014/08/07 15:40:30
AgentHostClosed
dgozman
2014/08/07 16:51:51
Done.
|
+ content::DevToolsAgentHost* agent_host, |
+ content::DevToolsAgentHost::DetachReason reason) OVERRIDE; |
// DevToolsEmbedderMessageDispatcher::Delegate implementation. |
virtual void ActivateWindow() OVERRIDE; |
@@ -170,6 +174,7 @@ class DevToolsUIBindings : public content::NotificationObserver, |
Profile* profile_; |
content::WebContents* web_contents_; |
scoped_ptr<Delegate> delegate_; |
+ scoped_refptr<content::DevToolsAgentHost> agent_host_; |
content::NotificationRegistrar registrar_; |
scoped_ptr<content::DevToolsFrontendHost> frontend_host_; |
scoped_ptr<DevToolsFileHelper> file_helper_; |