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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 private: | 30 private: |
31 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; | 31 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; |
32 bool devtools_callback_registered_; | 32 bool devtools_callback_registered_; |
33 void EnsureDevtoolsCallbackRegistered(); | 33 void EnsureDevtoolsCallbackRegistered(); |
34 | 34 |
35 Profile* GetProfile(content::DevToolsAgentHost* agent_host); | 35 Profile* GetProfile(content::DevToolsAgentHost* agent_host); |
36 | 36 |
37 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions( | 37 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions( |
38 content::DevToolsAgentHost* agent_host, | 38 content::DevToolsAgentHost* agent_host, |
39 DevToolsProtocol::Command* command); | 39 DevToolsProtocol::Command* command); |
40 std::string emulate_network_conditions_client_id_; | |
41 | 40 |
42 void UpdateNetworkState( | 41 void UpdateNetworkState( |
43 content::DevToolsAgentHost* agent_host, | 42 content::DevToolsAgentHost* agent_host, |
44 const scoped_refptr<DevToolsNetworkConditions> conditions); | 43 const scoped_refptr<DevToolsNetworkConditions> conditions); |
45 | 44 |
46 void OnDevToolsStateChanged(content::DevToolsAgentHost* agent_host, | 45 void OnDevToolsStateChanged(content::DevToolsAgentHost* agent_host, |
47 bool attached); | 46 bool attached); |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); |
50 }; | 49 }; |
51 | 50 |
52 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ | 51 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ |
OLD | NEW |