OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEVTOOLS_TARGETS_UI_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 typedef base::Callback<void(const std::string&, | 25 typedef base::Callback<void(const std::string&, |
26 const base::ListValue&)> Callback; | 26 const base::ListValue&)> Callback; |
27 typedef base::Callback<void(DevToolsTargetImpl*)> TargetCallback; | 27 typedef base::Callback<void(DevToolsTargetImpl*)> TargetCallback; |
28 | 28 |
29 DevToolsTargetsUIHandler(const std::string& source_id, | 29 DevToolsTargetsUIHandler(const std::string& source_id, |
30 const Callback& callback); | 30 const Callback& callback); |
31 virtual ~DevToolsTargetsUIHandler(); | 31 virtual ~DevToolsTargetsUIHandler(); |
32 | 32 |
33 std::string source_id() const { return source_id_; } | 33 std::string source_id() const { return source_id_; } |
34 | 34 |
35 static scoped_ptr<DevToolsTargetsUIHandler> CreateForRenderers( | 35 static scoped_ptr<DevToolsTargetsUIHandler> CreateForLocal( |
36 const Callback& callback); | |
37 | |
38 static scoped_ptr<DevToolsTargetsUIHandler> CreateForWorkers( | |
39 const Callback& callback); | 36 const Callback& callback); |
40 | 37 |
41 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb( | 38 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb( |
42 const Callback& callback, Profile* profile); | 39 const Callback& callback, Profile* profile); |
43 | 40 |
44 DevToolsTargetImpl* GetTarget(const std::string& target_id); | 41 DevToolsTargetImpl* GetTarget(const std::string& target_id); |
45 | 42 |
46 virtual void Open(const std::string& browser_id, const std::string& url, | 43 virtual void Open(const std::string& browser_id, const std::string& url, |
47 const TargetCallback& callback); | 44 const TargetCallback& callback); |
48 | 45 |
(...skipping 23 matching lines...) Expand all Loading... |
72 virtual ~PortForwardingStatusSerializer(); | 69 virtual ~PortForwardingStatusSerializer(); |
73 | 70 |
74 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; | 71 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; |
75 | 72 |
76 private: | 73 private: |
77 Callback callback_; | 74 Callback callback_; |
78 Profile* profile_; | 75 Profile* profile_; |
79 }; | 76 }; |
80 | 77 |
81 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
OLD | NEW |