| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_INSPECT_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 DevToolsTargetsUIHandler* FindTargetHandler( | 77 DevToolsTargetsUIHandler* FindTargetHandler( |
| 78 const std::string& source_id); | 78 const std::string& source_id); |
| 79 scoped_refptr<content::DevToolsAgentHost> FindTarget( | 79 scoped_refptr<content::DevToolsAgentHost> FindTarget( |
| 80 const std::string& source_id, | 80 const std::string& source_id, |
| 81 const std::string& target_id); | 81 const std::string& target_id); |
| 82 | 82 |
| 83 void PopulateTargets(const std::string& source_id, | 83 void PopulateTargets(const std::string& source_id, |
| 84 const base::ListValue& targets); | 84 const base::ListValue& targets); |
| 85 | 85 |
| 86 void PopulateAdditionalTargets(const base::ListValue& targets); |
| 87 |
| 86 void ForceUpdateIfNeeded(const std::string& source_id, | 88 void ForceUpdateIfNeeded(const std::string& source_id, |
| 87 const std::string& target_type); | 89 const std::string& target_type); |
| 88 | 90 |
| 89 void PopulatePortStatus(const base::Value& status); | 91 void PopulatePortStatus(const base::Value& status); |
| 90 | 92 |
| 91 void ShowIncognitoWarning(); | 93 void ShowIncognitoWarning(); |
| 92 | 94 |
| 93 // A scoped container for notification registries. | 95 // A scoped container for notification registries. |
| 94 content::NotificationRegistrar notification_registrar_; | 96 content::NotificationRegistrar notification_registrar_; |
| 95 | 97 |
| 96 // A scoped container for preference change registries. | 98 // A scoped container for preference change registries. |
| 97 PrefChangeRegistrar pref_change_registrar_; | 99 PrefChangeRegistrar pref_change_registrar_; |
| 98 | 100 |
| 99 std::map<std::string, std::unique_ptr<DevToolsTargetsUIHandler>> | 101 std::map<std::string, std::unique_ptr<DevToolsTargetsUIHandler>> |
| 100 target_handlers_; | 102 target_handlers_; |
| 101 | 103 |
| 102 std::unique_ptr<PortForwardingStatusSerializer> port_status_serializer_; | 104 std::unique_ptr<PortForwardingStatusSerializer> port_status_serializer_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(InspectUI); | 106 DISALLOW_COPY_AND_ASSIGN(InspectUI); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | 109 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ |
| OLD | NEW |