| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // update status. On other platforms, it will request and perform an update | 74 // update status. On other platforms, it will request and perform an update |
| 75 // (if one is available). | 75 // (if one is available). |
| 76 void HandleRefreshUpdateStatus(const base::ListValue* args); | 76 void HandleRefreshUpdateStatus(const base::ListValue* args); |
| 77 void RefreshUpdateStatus(); | 77 void RefreshUpdateStatus(); |
| 78 | 78 |
| 79 #if defined(OS_MACOSX) | 79 #if defined(OS_MACOSX) |
| 80 // Promotes the updater for all users. | 80 // Promotes the updater for all users. |
| 81 void PromoteUpdater(const base::ListValue* args); | 81 void PromoteUpdater(const base::ListValue* args); |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 // Relaunches the browser. |args| must be empty. | |
| 85 void HandleRelaunchNow(const base::ListValue* args); | |
| 86 | |
| 87 // Opens the feedback dialog. |args| must be empty. | 84 // Opens the feedback dialog. |args| must be empty. |
| 88 void HandleOpenFeedbackDialog(const base::ListValue* args); | 85 void HandleOpenFeedbackDialog(const base::ListValue* args); |
| 89 | 86 |
| 90 // Opens the help page. |args| must be empty. | 87 // Opens the help page. |args| must be empty. |
| 91 void HandleOpenHelpPage(const base::ListValue* args); | 88 void HandleOpenHelpPage(const base::ListValue* args); |
| 92 | 89 |
| 93 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
| 94 // Sets the release track version. | 91 // Sets the release track version. |
| 95 void HandleSetChannel(const base::ListValue* args); | 92 void HandleSetChannel(const base::ListValue* args); |
| 96 | 93 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 145 |
| 149 // Used for callbacks. | 146 // Used for callbacks. |
| 150 base::WeakPtrFactory<AboutHandler> weak_factory_; | 147 base::WeakPtrFactory<AboutHandler> weak_factory_; |
| 151 | 148 |
| 152 DISALLOW_COPY_AND_ASSIGN(AboutHandler); | 149 DISALLOW_COPY_AND_ASSIGN(AboutHandler); |
| 153 }; | 150 }; |
| 154 | 151 |
| 155 } // namespace settings | 152 } // namespace settings |
| 156 | 153 |
| 157 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ | 154 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ |
| OLD | NEW |