Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: chrome/browser/devtools/device/devtools_android_bridge.h

Issue 2263843002: DevTools: merge devtools target with devtools host, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 3 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
223 private: 224 private:
224 friend struct content::BrowserThread::DeleteOnThread< 225 friend struct content::BrowserThread::DeleteOnThread<
225 content::BrowserThread::UI>; 226 content::BrowserThread::UI>;
226 friend class base::DeleteHelper<DevToolsAndroidBridge>; 227 friend class base::DeleteHelper<DevToolsAndroidBridge>;
227 228
228 friend class PortForwardingController; 229 friend class PortForwardingController;
229 230
230 class AgentHostDelegate; 231 class AgentHostDelegate;
231 class DiscoveryRequest; 232 class DiscoveryRequest;
232 class RemotePageTarget; 233 class RemotePageTarget;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 PrefChangeRegistrar pref_change_registrar_; 298 PrefChangeRegistrar pref_change_registrar_;
298 299
299 TCPProviderCallback tcp_provider_callback_; 300 TCPProviderCallback tcp_provider_callback_;
300 301
301 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_; 302 base::WeakPtrFactory<DevToolsAndroidBridge> weak_factory_;
302 303
303 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge); 304 DISALLOW_COPY_AND_ASSIGN(DevToolsAndroidBridge);
304 }; 305 };
305 306
306 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_ 307 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_DEVTOOLS_ANDROID_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698