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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void SendProtocolCommand(const std::string& debug_url, | 114 void SendProtocolCommand(const std::string& debug_url, |
115 const std::string& method, | 115 const std::string& method, |
116 base::DictionaryValue* params, | 116 base::DictionaryValue* params, |
117 const base::Closure callback); | 117 const base::Closure callback); |
118 | 118 |
119 void Open(const std::string& url, | 119 void Open(const std::string& url, |
120 const RemotePageCallback& callback); | 120 const RemotePageCallback& callback); |
121 | 121 |
122 scoped_refptr<content::DevToolsAgentHost> GetAgentHost(); | 122 scoped_refptr<content::DevToolsAgentHost> GetAgentHost(); |
123 | 123 |
124 AndroidWebSocket* CreateWebSocket( | 124 scoped_refptr<AndroidWebSocket> CreateWebSocket( |
125 const std::string& url, | 125 const std::string& url, |
126 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate); | 126 DevToolsAndroidBridge::AndroidWebSocket::Delegate* delegate); |
127 | 127 |
128 private: | 128 private: |
129 friend class base::RefCounted<RemoteBrowser>; | 129 friend class base::RefCounted<RemoteBrowser>; |
130 virtual ~RemoteBrowser(); | 130 virtual ~RemoteBrowser(); |
131 | 131 |
132 void InnerOpen(const std::string& url, | 132 void InnerOpen(const std::string& url, |
133 const JsonRequestCallback& callback); | 133 const JsonRequestCallback& callback); |
134 | 134 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 typedef std::vector<DeviceCountListener*> DeviceCountListeners; | 252 typedef std::vector<DeviceCountListener*> DeviceCountListeners; |
253 DeviceCountListeners device_count_listeners_; | 253 DeviceCountListeners device_count_listeners_; |
254 base::CancelableCallback<void(int)> device_count_callback_; | 254 base::CancelableCallback<void(int)> device_count_callback_; |
255 base::Callback<void(const base::Closure&)> task_scheduler_; | 255 base::Callback<void(const base::Closure&)> task_scheduler_; |
256 | 256 |
257 PrefChangeRegistrar pref_change_registrar_; | 257 PrefChangeRegistrar pref_change_registrar_; |
258 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); | 258 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); |
259 }; | 259 }; |
260 | 260 |
261 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ | 261 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ |
OLD | NEW |