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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void SendProtocolCommand(const std::string& debug_url, | 115 void SendProtocolCommand(const std::string& debug_url, |
116 const std::string& method, | 116 const std::string& method, |
117 base::DictionaryValue* params, | 117 base::DictionaryValue* params, |
118 const base::Closure callback); | 118 const base::Closure callback); |
119 | 119 |
120 void Open(const std::string& url, | 120 void Open(const std::string& url, |
121 const RemotePageCallback& callback); | 121 const RemotePageCallback& callback); |
122 | 122 |
123 scoped_refptr<content::DevToolsAgentHost> GetAgentHost(); | 123 scoped_refptr<content::DevToolsAgentHost> GetAgentHost(); |
124 | 124 |
125 scoped_refptr<AndroidWebSocket> CreateWebSocket( | 125 AndroidWebSocket* CreateWebSocket( |
126 const std::string& url, | 126 const std::string& url, |
127 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate); | 127 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate); |
128 | 128 |
129 private: | 129 private: |
130 friend class base::RefCounted<RemoteBrowser>; | 130 friend class base::RefCounted<RemoteBrowser>; |
131 virtual ~RemoteBrowser(); | 131 virtual ~RemoteBrowser(); |
132 | 132 |
133 void InnerOpen(const std::string& url, | 133 void InnerOpen(const std::string& url, |
134 const JsonRequestCallback& callback); | 134 const JsonRequestCallback& callback); |
135 | 135 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 275 |
276 typedef std::vector<PortForwardingListener*> PortForwardingListeners; | 276 typedef std::vector<PortForwardingListener*> PortForwardingListeners; |
277 PortForwardingListeners port_forwarding_listeners_; | 277 PortForwardingListeners port_forwarding_listeners_; |
278 scoped_ptr<PortForwardingController> port_forwarding_controller_; | 278 scoped_ptr<PortForwardingController> port_forwarding_controller_; |
279 | 279 |
280 PrefChangeRegistrar pref_change_registrar_; | 280 PrefChangeRegistrar pref_change_registrar_; |
281 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); | 281 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); |
282 }; | 282 }; |
283 | 283 |
284 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 284 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
OLD | NEW |