| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SETTINGS_ABOUT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void HandleGetVersionInfo(const base::ListValue* args); | 98 void HandleGetVersionInfo(const base::ListValue* args); |
| 99 void OnGetVersionInfoReady( | 99 void OnGetVersionInfoReady( |
| 100 std::string callback_id, | 100 std::string callback_id, |
| 101 std::unique_ptr<base::DictionaryValue> version_info); | 101 std::unique_ptr<base::DictionaryValue> version_info); |
| 102 | 102 |
| 103 void HandleGetCurrentChannel(const base::ListValue* args); | 103 void HandleGetCurrentChannel(const base::ListValue* args); |
| 104 void HandleGetTargetChannel(const base::ListValue* args); | 104 void HandleGetTargetChannel(const base::ListValue* args); |
| 105 // C++ callback for either of |HandleGetCurrentChannel| or | 105 // C++ callback for either of |HandleGetCurrentChannel| or |
| 106 // |HandleGetTargetChannel|, | 106 // |HandleGetTargetChannel|, |
| 107 void OnGetChannelReady(std::string callback_id, const std::string& channel); | 107 void OnGetChannelReady(std::string callback_id, const std::string& channel); |
| 108 |
| 109 void HandleGetCanChangeChannel(const base::ListValue* args); |
| 108 #endif | 110 #endif |
| 109 | 111 |
| 110 // Checks for and applies update. | 112 // Checks for and applies update. |
| 111 void RequestUpdate(); | 113 void RequestUpdate(); |
| 112 | 114 |
| 113 // Callback method which forwards status updates to the page. | 115 // Callback method which forwards status updates to the page. |
| 114 void SetUpdateStatus(VersionUpdater::Status status, | 116 void SetUpdateStatus(VersionUpdater::Status status, |
| 115 int progress, | 117 int progress, |
| 116 const base::string16& fail_message); | 118 const base::string16& fail_message); |
| 117 | 119 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 145 | 147 |
| 146 // Used for callbacks. | 148 // Used for callbacks. |
| 147 base::WeakPtrFactory<AboutHandler> weak_factory_; | 149 base::WeakPtrFactory<AboutHandler> weak_factory_; |
| 148 | 150 |
| 149 DISALLOW_COPY_AND_ASSIGN(AboutHandler); | 151 DISALLOW_COPY_AND_ASSIGN(AboutHandler); |
| 150 }; | 152 }; |
| 151 | 153 |
| 152 } // namespace settings | 154 } // namespace settings |
| 153 | 155 |
| 154 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ | 156 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ |
| OLD | NEW |