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_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/devtools/devtools_network_protocol_handler.h" | 11 #include "chrome/browser/devtools/devtools_network_protocol_handler.h" |
12 #include "chrome/browser/devtools/devtools_protocol.h" | |
13 #include "content/public/browser/devtools_manager_delegate.h" | 12 #include "content/public/browser/devtools_manager_delegate.h" |
14 | 13 |
15 class DevToolsNetworkConditions; | 14 class DevToolsManagerDelegateAndroid : public content::DevToolsManagerDelegate { |
16 class Profile; | 15 public: |
| 16 DevToolsManagerDelegateAndroid(); |
| 17 virtual ~DevToolsManagerDelegateAndroid(); |
17 | 18 |
18 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate { | 19 // content::DevToolsManagerDelegate implementation. |
19 public: | |
20 ChromeDevToolsManagerDelegate(); | |
21 virtual ~ChromeDevToolsManagerDelegate(); | |
22 | |
23 // content::DevToolsManagerDelegate overrides: | |
24 virtual void Inspect(content::BrowserContext* browser_context, | 20 virtual void Inspect(content::BrowserContext* browser_context, |
25 content::DevToolsAgentHost* agent_host) OVERRIDE; | 21 content::DevToolsAgentHost* agent_host) OVERRIDE; |
26 virtual void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | 22 virtual void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
27 bool attached) OVERRIDE; | 23 bool attached) OVERRIDE; |
28 virtual base::DictionaryValue* HandleCommand( | 24 virtual base::DictionaryValue* HandleCommand( |
29 content::DevToolsAgentHost* agent_host, | 25 content::DevToolsAgentHost* agent_host, |
30 base::DictionaryValue* command_dict) OVERRIDE; | 26 base::DictionaryValue* command_dict) OVERRIDE; |
| 27 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget( |
| 28 const GURL& url) OVERRIDE; |
| 29 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE; |
| 30 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 scoped_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; | 33 scoped_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); | 35 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegateAndroid); |
36 }; | 36 }; |
37 | 37 |
38 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 38 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_ |
OLD | NEW |