| 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_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( | 213 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( |
| 214 scoped_refptr<RemoteBrowser> browser); | 214 scoped_refptr<RemoteBrowser> browser); |
| 215 | 215 |
| 216 void SendJsonRequest(const std::string& browser_id_str, | 216 void SendJsonRequest(const std::string& browser_id_str, |
| 217 const std::string& url, | 217 const std::string& url, |
| 218 const JsonRequestCallback& callback); | 218 const JsonRequestCallback& callback); |
| 219 | 219 |
| 220 using TCPProviderCallback = | 220 using TCPProviderCallback = |
| 221 base::Callback<void(scoped_refptr<TCPDeviceProvider>)>; | 221 base::Callback<void(scoped_refptr<TCPDeviceProvider>)>; |
| 222 void set_tcp_provider_callback_for_test(TCPProviderCallback callback); | 222 void set_tcp_provider_callback_for_test(TCPProviderCallback callback); |
| 223 | |
| 224 private: | 223 private: |
| 225 friend struct content::BrowserThread::DeleteOnThread< | 224 friend struct content::BrowserThread::DeleteOnThread< |
| 226 content::BrowserThread::UI>; | 225 content::BrowserThread::UI>; |
| 227 friend class base::DeleteHelper<DevToolsAndroidBridge>; | 226 friend class base::DeleteHelper<DevToolsAndroidBridge>; |
| 228 | 227 |
| 229 friend class PortForwardingController; | 228 friend class PortForwardingController; |
| 230 | 229 |
| 231 class AgentHostDelegate; | 230 class AgentHostDelegate; |
| 232 class DiscoveryRequest; | 231 class DiscoveryRequest; |
| 233 class RemotePageTarget; | 232 class RemotePageTarget; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 PrefChangeRegistrar pref_change_registrar_; | 297 PrefChangeRegistrar pref_change_registrar_; |
| 299 | 298 |
| 300 TCPProviderCallback tcp_provider_callback_; | 299 TCPProviderCallback tcp_provider_callback_; |
| 301 | 300 |
| 302 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; | 301 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; |
| 303 | 302 |
| 304 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); | 303 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); |
| 305 }; | 304 }; |
| 306 | 305 |
| 307 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 306 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
| OLD | NEW |