| 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 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 scoped_ptr<DevToolsTargetsUIHandler> handler); | 80 scoped_ptr<DevToolsTargetsUIHandler> handler); |
| 81 | 81 |
| 82 DevToolsTargetsUIHandler* FindTargetHandler( | 82 DevToolsTargetsUIHandler* FindTargetHandler( |
| 83 const std::string& source_id); | 83 const std::string& source_id); |
| 84 DevToolsTargetImpl* FindTarget(const std::string& source_id, | 84 DevToolsTargetImpl* FindTarget(const std::string& source_id, |
| 85 const std::string& target_id); | 85 const std::string& target_id); |
| 86 | 86 |
| 87 void PopulateTargets(const std::string& source_id, | 87 void PopulateTargets(const std::string& source_id, |
| 88 const base::ListValue& targets); | 88 const base::ListValue& targets); |
| 89 | 89 |
| 90 void ForceUpdateIfNeeded(const std::string& source_id, |
| 91 const std::string& target_type); |
| 92 |
| 90 void PopulatePortStatus(const base::Value& status); | 93 void PopulatePortStatus(const base::Value& status); |
| 91 | 94 |
| 92 void ShowIncognitoWarning(); | 95 void ShowIncognitoWarning(); |
| 93 | 96 |
| 94 // A scoped container for notification registries. | 97 // A scoped container for notification registries. |
| 95 content::NotificationRegistrar notification_registrar_; | 98 content::NotificationRegistrar notification_registrar_; |
| 96 | 99 |
| 97 // A scoped container for preference change registries. | 100 // A scoped container for preference change registries. |
| 98 PrefChangeRegistrar pref_change_registrar_; | 101 PrefChangeRegistrar pref_change_registrar_; |
| 99 | 102 |
| 100 typedef std::map<std::string, DevToolsTargetsUIHandler*> TargetHandlerMap; | 103 typedef std::map<std::string, DevToolsTargetsUIHandler*> TargetHandlerMap; |
| 101 TargetHandlerMap target_handlers_; | 104 TargetHandlerMap target_handlers_; |
| 102 | 105 |
| 103 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_; | 106 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_; |
| 104 | 107 |
| 105 scoped_ptr<content::WebUI> serviceworker_webui_; | 108 scoped_ptr<content::WebUI> serviceworker_webui_; |
| 106 | 109 |
| 107 DISALLOW_COPY_AND_ASSIGN(InspectUI); | 110 DISALLOW_COPY_AND_ASSIGN(InspectUI); |
| 108 }; | 111 }; |
| 109 | 112 |
| 110 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | 113 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ |
| OLD | NEW |