| 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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/devtools_agent_host.h" | 11 #include "content/public/browser/devtools_agent_host.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class DictionaryValue; | 15 class DictionaryValue; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class BrowserContext; | 20 class BrowserContext; |
| 21 class RenderFrameHost; | 21 class RenderFrameHost; |
| 22 | 22 |
| 23 class CONTENT_EXPORT DevToolsManagerDelegate { | 23 class CONTENT_EXPORT DevToolsManagerDelegate { |
| 24 public: | 24 public: |
| 25 // Opens the inspector for |agent_host|. | 25 // Opens the inspector for |agent_host|. |
| 26 virtual void Inspect(DevToolsAgentHost* agent_host); | 26 virtual void Inspect(DevToolsAgentHost* agent_host); |
| 27 | 27 |
| 28 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, | |
| 29 bool attached); | |
| 30 | |
| 31 // Returns DevToolsAgentHost type to use for given |host| target. | 28 // Returns DevToolsAgentHost type to use for given |host| target. |
| 32 virtual std::string GetTargetType(RenderFrameHost* host); | 29 virtual std::string GetTargetType(RenderFrameHost* host); |
| 33 | 30 |
| 34 // Returns DevToolsAgentHost title to use for given |host| target. | 31 // Returns DevToolsAgentHost title to use for given |host| target. |
| 35 virtual std::string GetTargetTitle(RenderFrameHost* host); | 32 virtual std::string GetTargetTitle(RenderFrameHost* host); |
| 36 | 33 |
| 37 // Returns DevToolsAgentHost title to use for given |host| target. | 34 // Returns DevToolsAgentHost title to use for given |host| target. |
| 38 virtual std::string GetTargetDescription(RenderFrameHost* host); | 35 virtual std::string GetTargetDescription(RenderFrameHost* host); |
| 39 | 36 |
| 40 // Returns all targets embedder would like to report as discoverable. | 37 // Returns all targets embedder would like to report as discoverable. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 | 54 |
| 58 // Returns frontend resource data by |path|. | 55 // Returns frontend resource data by |path|. |
| 59 virtual std::string GetFrontendResource(const std::string& path); | 56 virtual std::string GetFrontendResource(const std::string& path); |
| 60 | 57 |
| 61 virtual ~DevToolsManagerDelegate(); | 58 virtual ~DevToolsManagerDelegate(); |
| 62 }; | 59 }; |
| 63 | 60 |
| 64 } // namespace content | 61 } // namespace content |
| 65 | 62 |
| 66 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 63 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |