| 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 // Performs relaunch and powerwash. | 83 // Performs relaunch and powerwash. |
| 84 void RelaunchAndPowerwash(const base::ListValue* args); | 84 void RelaunchAndPowerwash(const base::ListValue* args); |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 // Checks for and applies update. | 87 // Checks for and applies update. |
| 88 void RequestUpdate(const base::ListValue* args); | 88 void RequestUpdate(const base::ListValue* args); |
| 89 | 89 |
| 90 // Callback method which forwards status updates to the page. | 90 // Callback method which forwards status updates to the page. |
| 91 void SetUpdateStatus(VersionUpdater::Status status, | 91 void SetUpdateStatus(VersionUpdater::Status status, |
| 92 int progress, | 92 int progress, |
| 93 const std::string& version, |
| 94 int64_t size, |
| 93 const base::string16& fail_message); | 95 const base::string16& fail_message); |
| 94 | 96 |
| 95 #if defined(OS_MACOSX) | 97 #if defined(OS_MACOSX) |
| 96 // Callback method which forwards promotion state to the page. | 98 // Callback method which forwards promotion state to the page. |
| 97 void SetPromotionState(VersionUpdater::PromotionState state); | 99 void SetPromotionState(VersionUpdater::PromotionState state); |
| 98 #endif | 100 #endif |
| 99 | 101 |
| 100 #if defined(OS_CHROMEOS) | 102 #if defined(OS_CHROMEOS) |
| 101 // Callbacks from VersionLoader. | 103 // Callbacks from VersionLoader. |
| 102 void OnOSVersion(const std::string& version); | 104 void OnOSVersion(const std::string& version); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 128 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. | 130 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. |
| 129 policy::PolicyChangeRegistrar policy_registrar_; | 131 policy::PolicyChangeRegistrar policy_registrar_; |
| 130 | 132 |
| 131 // Used for callbacks. | 133 // Used for callbacks. |
| 132 base::WeakPtrFactory<HelpHandler> weak_factory_; | 134 base::WeakPtrFactory<HelpHandler> weak_factory_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 136 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 139 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
| OLD | NEW |