| 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 BrowserContext* context); |
| 27 | 28 |
| 28 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, | 29 virtual void DevToolsAgentStateChanged(DevToolsAgentHost* agent_host, |
| 29 bool attached); | 30 bool attached); |
| 30 | 31 |
| 31 // Returns DevToolsAgentHost type to use for given |host| target. | 32 // Returns DevToolsAgentHost type to use for given |host| target. |
| 32 virtual std::string GetTargetType(RenderFrameHost* host); | 33 virtual std::string GetTargetType(RenderFrameHost* host); |
| 33 | 34 |
| 34 // Returns DevToolsAgentHost title to use for given |host| target. | 35 // Returns DevToolsAgentHost title to use for given |host| target. |
| 35 virtual std::string GetTargetTitle(RenderFrameHost* host); | 36 virtual std::string GetTargetTitle(RenderFrameHost* host); |
| 36 | 37 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 // Returns frontend resource data by |path|. | 59 // Returns frontend resource data by |path|. |
| 59 virtual std::string GetFrontendResource(const std::string& path); | 60 virtual std::string GetFrontendResource(const std::string& path); |
| 60 | 61 |
| 61 virtual ~DevToolsManagerDelegate(); | 62 virtual ~DevToolsManagerDelegate(); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace content | 65 } // namespace content |
| 65 | 66 |
| 66 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 67 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |