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_HELP_HELP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void OnRegulatoryLabelDirFound(const base::FilePath& path); | 108 void OnRegulatoryLabelDirFound(const base::FilePath& path); |
109 | 109 |
110 // Callback for setting the regulatory label source. | 110 // Callback for setting the regulatory label source. |
111 void OnRegulatoryLabelImageFound(const base::FilePath& path); | 111 void OnRegulatoryLabelImageFound(const base::FilePath& path); |
112 | 112 |
113 // Callback for setting the regulatory label alt text. | 113 // Callback for setting the regulatory label alt text. |
114 void OnRegulatoryLabelTextRead(const std::string& text); | 114 void OnRegulatoryLabelTextRead(const std::string& text); |
115 #endif | 115 #endif |
116 | 116 |
117 // Specialized instance of the VersionUpdater used to update the browser. | 117 // Specialized instance of the VersionUpdater used to update the browser. |
118 scoped_ptr<VersionUpdater> version_updater_; | 118 std::unique_ptr<VersionUpdater> version_updater_; |
119 | 119 |
120 // Used to observe notifications. | 120 // Used to observe notifications. |
121 content::NotificationRegistrar registrar_; | 121 content::NotificationRegistrar registrar_; |
122 | 122 |
123 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. | 123 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. |
124 policy::PolicyChangeRegistrar policy_registrar_; | 124 policy::PolicyChangeRegistrar policy_registrar_; |
125 | 125 |
126 // Used for callbacks. | 126 // Used for callbacks. |
127 base::WeakPtrFactory<HelpHandler> weak_factory_; | 127 base::WeakPtrFactory<HelpHandler> weak_factory_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 129 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 132 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
OLD | NEW |