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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 DevToolsTargetImpl* CreatePageTarget(scoped_refptr<RemotePage> browser); | 215 DevToolsTargetImpl* CreatePageTarget(scoped_refptr<RemotePage> browser); |
216 | 216 |
217 typedef base::Callback<void(scoped_refptr<RemotePage>)> RemotePageCallback; | 217 typedef base::Callback<void(scoped_refptr<RemotePage>)> RemotePageCallback; |
218 void OpenRemotePage(scoped_refptr<RemoteBrowser> browser, | 218 void OpenRemotePage(scoped_refptr<RemoteBrowser> browser, |
219 const std::string& url, | 219 const std::string& url, |
220 const RemotePageCallback& callback); | 220 const RemotePageCallback& callback); |
221 | 221 |
222 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( | 222 scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( |
223 scoped_refptr<RemoteBrowser> browser); | 223 scoped_refptr<RemoteBrowser> browser); |
224 | 224 |
| 225 void SendJsonRequest(const scoped_refptr<RemoteBrowser>& browser, |
| 226 const std::string& url, |
| 227 const JsonRequestCallback& callback); |
| 228 |
225 private: | 229 private: |
226 friend struct content::BrowserThread::DeleteOnThread< | 230 friend struct content::BrowserThread::DeleteOnThread< |
227 content::BrowserThread::UI>; | 231 content::BrowserThread::UI>; |
228 friend class base::DeleteHelper<DevToolsAndroidBridge>; | 232 friend class base::DeleteHelper<DevToolsAndroidBridge>; |
229 | 233 |
230 friend class PortForwardingController; | 234 friend class PortForwardingController; |
231 | 235 |
232 class AgentHostDelegate; | 236 class AgentHostDelegate; |
233 class DiscoveryRequest; | 237 class DiscoveryRequest; |
234 class RemotePageTarget; | 238 class RemotePageTarget; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 scoped_ptr<PortForwardingController> port_forwarding_controller_; | 320 scoped_ptr<PortForwardingController> port_forwarding_controller_; |
317 | 321 |
318 PrefChangeRegistrar pref_change_registrar_; | 322 PrefChangeRegistrar pref_change_registrar_; |
319 | 323 |
320 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; | 324 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; |
321 | 325 |
322 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); | 326 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); |
323 }; | 327 }; |
324 | 328 |
325 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 329 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
OLD | NEW |