| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 void SendProtocolCommand(const BrowserId& browser_id, | 263 void SendProtocolCommand(const BrowserId& browser_id, |
| 264 const std::string& debug_url, | 264 const std::string& debug_url, |
| 265 const std::string& method, | 265 const std::string& method, |
| 266 scoped_ptr<base::DictionaryValue> params, | 266 scoped_ptr<base::DictionaryValue> params, |
| 267 const base::Closure callback); | 267 const base::Closure callback); |
| 268 | 268 |
| 269 scoped_refptr<AndroidDeviceManager::Device> FindDevice( | 269 scoped_refptr<AndroidDeviceManager::Device> FindDevice( |
| 270 const std::string& serial); | 270 const std::string& serial); |
| 271 | 271 |
| 272 void PageCreatedOnUIThread(scoped_refptr<RemoteBrowser> browser, | |
| 273 const RemotePageCallback& callback, | |
| 274 const std::string& url, | |
| 275 int result, | |
| 276 const std::string& response); | |
| 277 | |
| 278 void NavigatePageOnUIThread(scoped_refptr<RemoteBrowser> browser, | |
| 279 const RemotePageCallback& callback, | |
| 280 int result, | |
| 281 const std::string& response, | |
| 282 const std::string& url); | |
| 283 | |
| 284 void RespondToOpenOnUIThread(scoped_refptr<RemoteBrowser> browser, | 272 void RespondToOpenOnUIThread(scoped_refptr<RemoteBrowser> browser, |
| 285 const RemotePageCallback& callback, | 273 const RemotePageCallback& callback, |
| 286 int result, | 274 int result, |
| 287 const std::string& response); | 275 const std::string& response); |
| 288 | 276 |
| 289 base::WeakPtr<DevToolsAndroidBridge> AsWeakPtr() { | 277 base::WeakPtr<DevToolsAndroidBridge> AsWeakPtr() { |
| 290 return weak_factory_.GetWeakPtr(); | 278 return weak_factory_.GetWeakPtr(); |
| 291 } | 279 } |
| 292 | 280 |
| 293 Profile* const profile_; | 281 Profile* const profile_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 316 scoped_ptr<PortForwardingController> port_forwarding_controller_; | 304 scoped_ptr<PortForwardingController> port_forwarding_controller_; |
| 317 | 305 |
| 318 PrefChangeRegistrar pref_change_registrar_; | 306 PrefChangeRegistrar pref_change_registrar_; |
| 319 | 307 |
| 320 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; | 308 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; |
| 321 | 309 |
| 322 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); | 310 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); |
| 323 }; | 311 }; |
| 324 | 312 |
| 325 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 313 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
| OLD | NEW |