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