| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const base::string16& fail_message); | 92 const base::string16& fail_message); |
| 93 | 93 |
| 94 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
| 95 // Callback method which forwards promotion state to the page. | 95 // Callback method which forwards promotion state to the page. |
| 96 void SetPromotionState(VersionUpdater::PromotionState state); | 96 void SetPromotionState(VersionUpdater::PromotionState state); |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
| 100 // Callbacks from VersionLoader. | 100 // Callbacks from VersionLoader. |
| 101 void OnOSVersion(const std::string& version); | 101 void OnOSVersion(const std::string& version); |
| 102 void OnARCVersion(const std::string& firmware); |
| 102 void OnOSFirmware(const std::string& firmware); | 103 void OnOSFirmware(const std::string& firmware); |
| 103 void OnCurrentChannel(const std::string& channel); | 104 void OnCurrentChannel(const std::string& channel); |
| 104 void OnTargetChannel(const std::string& channel); | 105 void OnTargetChannel(const std::string& channel); |
| 105 | 106 |
| 106 // Callback for when the directory with the regulatory label image and alt | 107 // Callback for when the directory with the regulatory label image and alt |
| 107 // text has been found. | 108 // text has been found. |
| 108 void OnRegulatoryLabelDirFound(const base::FilePath& path); | 109 void OnRegulatoryLabelDirFound(const base::FilePath& path); |
| 109 | 110 |
| 110 // Callback for setting the regulatory label source. | 111 // Callback for setting the regulatory label source. |
| 111 void OnRegulatoryLabelImageFound(const base::FilePath& path); | 112 void OnRegulatoryLabelImageFound(const base::FilePath& path); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 123 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. | 124 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. |
| 124 policy::PolicyChangeRegistrar policy_registrar_; | 125 policy::PolicyChangeRegistrar policy_registrar_; |
| 125 | 126 |
| 126 // Used for callbacks. | 127 // Used for callbacks. |
| 127 base::WeakPtrFactory<HelpHandler> weak_factory_; | 128 base::WeakPtrFactory<HelpHandler> weak_factory_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 130 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 133 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
| OLD | NEW |