| 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 "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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // content::DevToolsManagerDelegate overrides: | 22 // content::DevToolsManagerDelegate overrides: |
| 23 virtual void Inspect(content::BrowserContext* browser_context, | 23 virtual void Inspect(content::BrowserContext* browser_context, |
| 24 content::DevToolsAgentHost* agent_host) OVERRIDE; | 24 content::DevToolsAgentHost* agent_host) OVERRIDE; |
| 25 virtual void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, | 25 virtual void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host, |
| 26 bool attached) OVERRIDE; | 26 bool attached) OVERRIDE; |
| 27 virtual base::DictionaryValue* HandleCommand( | 27 virtual base::DictionaryValue* HandleCommand( |
| 28 content::DevToolsAgentHost* agent_host, | 28 content::DevToolsAgentHost* agent_host, |
| 29 base::DictionaryValue* command_dict) OVERRIDE; | 29 base::DictionaryValue* command_dict) OVERRIDE; |
| 30 | 30 |
| 31 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget( |
| 32 const GURL& url) OVERRIDE; |
| 33 |
| 34 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE; |
| 35 |
| 36 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE; |
| 37 |
| 31 private: | 38 private: |
| 32 Profile* GetProfile(content::DevToolsAgentHost* agent_host); | 39 Profile* GetProfile(content::DevToolsAgentHost* agent_host); |
| 33 | 40 |
| 34 scoped_ptr<DevToolsProtocol::Response> CanEmulateNetworkConditions( | 41 scoped_ptr<DevToolsProtocol::Response> CanEmulateNetworkConditions( |
| 35 content::DevToolsAgentHost* agent_host, | 42 content::DevToolsAgentHost* agent_host, |
| 36 DevToolsProtocol::Command* command); | 43 DevToolsProtocol::Command* command); |
| 37 | 44 |
| 38 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions( | 45 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions( |
| 39 content::DevToolsAgentHost* agent_host, | 46 content::DevToolsAgentHost* agent_host, |
| 40 DevToolsProtocol::Command* command); | 47 DevToolsProtocol::Command* command); |
| 41 | 48 |
| 42 void UpdateNetworkState( | 49 void UpdateNetworkState( |
| 43 content::DevToolsAgentHost* agent_host, | 50 content::DevToolsAgentHost* agent_host, |
| 44 scoped_ptr<DevToolsNetworkConditions> conditions); | 51 scoped_ptr<DevToolsNetworkConditions> conditions); |
| 45 | 52 |
| 46 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); |
| 47 }; | 54 }; |
| 48 | 55 |
| 49 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 56 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
| OLD | NEW |