| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/public/browser/devtools_manager_delegate.h" | 12 #include "content/public/browser/devtools_manager_delegate.h" |
| 13 | 13 |
| 14 class DevToolsNetworkProtocolHandler; | 14 class DevToolsNetworkProtocolHandler; |
| 15 | 15 |
| 16 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | 16 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate { |
| 17 public: | 17 public: |
| 18 static char kTypeApp[]; | |
| 19 static char kTypeBackgroundPage[]; | |
| 20 | |
| 21 ChromeDevToolsManagerDelegate(); | 18 ChromeDevToolsManagerDelegate(); |
| 22 ~ChromeDevToolsManagerDelegate() override; | 19 ~ChromeDevToolsManagerDelegate() override; |
| 23 | 20 |
| 24 // content::DevToolsManagerDelegate implementation. | 21 // content::DevToolsManagerDelegate implementation. |
| 25 void Inspect(content::DevToolsAgentHost* agent_host) override; | 22 void Inspect(content::BrowserContext* browser_context, |
| 23 content::DevToolsAgentHost* agent_host) override; |
| 26 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | 24 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
| 27 bool attached) override; | 25 bool attached) override; |
| 28 base::DictionaryValue* HandleCommand( | 26 base::DictionaryValue* HandleCommand( |
| 29 content::DevToolsAgentHost* agent_host, | 27 content::DevToolsAgentHost* agent_host, |
| 30 base::DictionaryValue* command_dict) override; | 28 base::DictionaryValue* command_dict) override; |
| 31 std::string GetTargetType(content::RenderFrameHost* host) override; | |
| 32 std::string GetTargetTitle(content::RenderFrameHost* host) override; | |
| 33 | 29 |
| 34 private: | 30 private: |
| 35 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; | 31 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; |
| 36 | 32 |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); |
| 38 }; | 34 }; |
| 39 | 35 |
| 40 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 36 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |