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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Callback method which forwards promotion state to the page. | 83 // Callback method which forwards promotion state to the page. |
84 void SetPromotionState(VersionUpdater::PromotionState state); | 84 void SetPromotionState(VersionUpdater::PromotionState state); |
85 #endif | 85 #endif |
86 | 86 |
87 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
88 // Callbacks from VersionLoader. | 88 // Callbacks from VersionLoader. |
89 void OnOSVersion(const std::string& version); | 89 void OnOSVersion(const std::string& version); |
90 void OnOSFirmware(const std::string& firmware); | 90 void OnOSFirmware(const std::string& firmware); |
91 void OnCurrentChannel(const std::string& channel); | 91 void OnCurrentChannel(const std::string& channel); |
92 void OnTargetChannel(const std::string& channel); | 92 void OnTargetChannel(const std::string& channel); |
| 93 |
| 94 // Callback for loading FCC label alt text. |
| 95 void LoadFCCLabelText(); |
93 #endif | 96 #endif |
94 | 97 |
95 // Specialized instance of the VersionUpdater used to update the browser. | 98 // Specialized instance of the VersionUpdater used to update the browser. |
96 scoped_ptr<VersionUpdater> version_updater_; | 99 scoped_ptr<VersionUpdater> version_updater_; |
97 | 100 |
98 // Used to observe notifications. | 101 // Used to observe notifications. |
99 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
100 | 103 |
101 #if defined(OS_CHROMEOS) | 104 #if defined(OS_CHROMEOS) |
102 // Handles asynchronously loading the CrOS version info. | 105 // Handles asynchronously loading the CrOS version info. |
103 chromeos::VersionLoader loader_; | 106 chromeos::VersionLoader loader_; |
104 | 107 |
105 // Used to request the version. | 108 // Used to request the version. |
106 base::CancelableTaskTracker tracker_; | 109 base::CancelableTaskTracker tracker_; |
107 #endif // defined(OS_CHROMEOS) | 110 #endif // defined(OS_CHROMEOS) |
108 | 111 |
109 // Used for callbacks. | 112 // Used for callbacks. |
110 base::WeakPtrFactory<HelpHandler> weak_factory_; | 113 base::WeakPtrFactory<HelpHandler> weak_factory_; |
111 | 114 |
112 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 115 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
113 }; | 116 }; |
114 | 117 |
115 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 118 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
OLD | NEW |