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; | |
21 class RenderFrameHost; | 20 class RenderFrameHost; |
22 | 21 |
23 class CONTENT_EXPORT DevToolsManagerDelegate { | 22 class CONTENT_EXPORT DevToolsManagerDelegate { |
24 public: | 23 public: |
25 // Opens the inspector for |agent_host|. | 24 // Opens the inspector for |agent_host|. |
26 virtual void Inspect(DevToolsAgentHost* agent_host); | 25 virtual void Inspect(DevToolsAgentHost* agent_host); |
27 | 26 |
28 // Returns DevToolsAgentHost type to use for given |host| target. | 27 // Returns DevToolsAgentHost type to use for given |host| target. |
29 virtual std::string GetTargetType(RenderFrameHost* host); | 28 virtual std::string GetTargetType(RenderFrameHost* host); |
30 | 29 |
(...skipping 23 matching lines...) Expand all Loading... |
54 | 53 |
55 // Returns frontend resource data by |path|. | 54 // Returns frontend resource data by |path|. |
56 virtual std::string GetFrontendResource(const std::string& path); | 55 virtual std::string GetFrontendResource(const std::string& path); |
57 | 56 |
58 virtual ~DevToolsManagerDelegate(); | 57 virtual ~DevToolsManagerDelegate(); |
59 }; | 58 }; |
60 | 59 |
61 } // namespace content | 60 } // namespace content |
62 | 61 |
63 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ | 62 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_ |
OLD | NEW |