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

Side by Side Diff: chrome/browser/devtools/chrome_devtools_manager_delegate.h

Issue 2431483003: [DevTools] Split device discovery off DevToolsAnrdoidBridge. (Closed)
Patch Set: the bug with invalid weak pointer Created 4 years, 2 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_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/devtools/device/devtools_android_bridge.h" 13 #include "chrome/browser/devtools/device/devtools_device_discovery.h"
14 #include "content/public/browser/devtools_agent_host_observer.h" 14 #include "content/public/browser/devtools_agent_host_observer.h"
15 #include "content/public/browser/devtools_manager_delegate.h" 15 #include "content/public/browser/devtools_manager_delegate.h"
16 #include "net/base/host_port_pair.h" 16 #include "net/base/host_port_pair.h"
17 17
18 class DevToolsNetworkProtocolHandler; 18 class DevToolsNetworkProtocolHandler;
19 19
20 class ChromeDevToolsManagerDelegate : 20 class ChromeDevToolsManagerDelegate :
21 public content::DevToolsManagerDelegate, 21 public content::DevToolsManagerDelegate,
22 public content::DevToolsAgentHostObserver { 22 public content::DevToolsAgentHostObserver {
23 public: 23 public:
(...skipping 20 matching lines...) Expand all
44 std::string GetFrontendResource(const std::string& path) override; 44 std::string GetFrontendResource(const std::string& path) override;
45 45
46 // content::DevToolsAgentHostObserver overrides. 46 // content::DevToolsAgentHostObserver overrides.
47 void DevToolsAgentHostAttached( 47 void DevToolsAgentHostAttached(
48 content::DevToolsAgentHost* agent_host) override; 48 content::DevToolsAgentHost* agent_host) override;
49 void DevToolsAgentHostDetached( 49 void DevToolsAgentHostDetached(
50 content::DevToolsAgentHost* agent_host) override; 50 content::DevToolsAgentHost* agent_host) override;
51 51
52 void DevicesAvailable( 52 void DevicesAvailable(
53 const content::DevToolsAgentHost::DiscoveryCallback& callback, 53 const content::DevToolsAgentHost::DiscoveryCallback& callback,
54 const DevToolsAndroidBridge::CompleteDevices& devices); 54 const DevToolsDeviceDiscovery::CompleteDevices& devices);
55 55
56 std::unique_ptr<base::DictionaryValue> SetRemoteLocations( 56 std::unique_ptr<base::DictionaryValue> SetRemoteLocations(
57 content::DevToolsAgentHost* agent_host, 57 content::DevToolsAgentHost* agent_host,
58 int command_id, 58 int command_id,
59 base::DictionaryValue* params); 59 base::DictionaryValue* params);
60 60
61 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_; 61 std::unique_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_;
62 std::unique_ptr<AndroidDeviceManager> device_manager_; 62 std::unique_ptr<AndroidDeviceManager> device_manager_;
63 std::set<net::HostPortPair> tcp_locations_; 63 std::set<net::HostPortPair> tcp_locations_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); 65 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate);
66 }; 66 };
67 67
68 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 68 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/browser/devtools/chrome_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698