| 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 27 matching lines...) Expand all Loading... |
| 38 Callback callback); | 38 Callback callback); |
| 39 | 39 |
| 40 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb( | 40 static scoped_ptr<DevToolsTargetsUIHandler> CreateForAdb( |
| 41 Callback callback, Profile* profile); | 41 Callback callback, Profile* profile); |
| 42 | 42 |
| 43 DevToolsTargetImpl* GetTarget(const std::string& target_id); | 43 DevToolsTargetImpl* GetTarget(const std::string& target_id); |
| 44 | 44 |
| 45 virtual void Open(const std::string& browser_id, const std::string& url, | 45 virtual void Open(const std::string& browser_id, const std::string& url, |
| 46 const TargetCallback& callback); | 46 const TargetCallback& callback); |
| 47 | 47 |
| 48 virtual scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( |
| 49 const std::string& browser_id); |
| 50 |
| 48 protected: | 51 protected: |
| 49 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target); | 52 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target); |
| 50 void SendSerializedTargets(scoped_ptr<base::ListValue> list); | 53 void SendSerializedTargets(scoped_ptr<base::ListValue> list); |
| 51 | 54 |
| 52 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap; | 55 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap; |
| 53 TargetMap targets_; | 56 TargetMap targets_; |
| 54 | 57 |
| 55 private: | 58 private: |
| 56 const std::string source_id_; | 59 const std::string source_id_; |
| 57 Callback callback_; | 60 Callback callback_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 68 virtual ~PortForwardingStatusSerializer(); | 71 virtual ~PortForwardingStatusSerializer(); |
| 69 | 72 |
| 70 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; | 73 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 Callback callback_; | 76 Callback callback_; |
| 74 Profile* profile_; | 77 Profile* profile_; |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
| OLD | NEW |