| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const content::NotificationSource& source, | 59 const content::NotificationSource& source, |
| 60 const content::NotificationDetails& details) override; | 60 const content::NotificationDetails& details) override; |
| 61 | 61 |
| 62 // Returns the browser version as a string. | 62 // Returns the browser version as a string. |
| 63 static base::string16 BuildBrowserVersionString(); | 63 static base::string16 BuildBrowserVersionString(); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 void OnDeviceAutoUpdatePolicyChanged(const base::Value* previous_policy, | 66 void OnDeviceAutoUpdatePolicyChanged(const base::Value* previous_policy, |
| 67 const base::Value* current_policy); | 67 const base::Value* current_policy); |
| 68 | 68 |
| 69 // Called once the JS page is ready to be called, serves as a signal to the |
| 70 // handler to register C++ observers. |
| 71 void HandlePageReady(const base::ListValue* args); |
| 72 |
| 69 // Called once when the page has loaded. On ChromeOS, this gets the current | 73 // Called once when the page has loaded. On ChromeOS, this gets the current |
| 70 // 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 |
| 71 // (if one is available). | 75 // (if one is available). |
| 72 void HandleRefreshUpdateStatus(const base::ListValue* args); | 76 void HandleRefreshUpdateStatus(const base::ListValue* args); |
| 73 void RefreshUpdateStatus(); | 77 void RefreshUpdateStatus(); |
| 74 | 78 |
| 75 #if defined(OS_MACOSX) | 79 #if defined(OS_MACOSX) |
| 76 // Promotes the updater for all users. | 80 // Promotes the updater for all users. |
| 77 void PromoteUpdater(const base::ListValue* args); | 81 void PromoteUpdater(const base::ListValue* args); |
| 78 #endif | 82 #endif |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 148 |
| 145 // Used for callbacks. | 149 // Used for callbacks. |
| 146 base::WeakPtrFactory<AboutHandler> weak_factory_; | 150 base::WeakPtrFactory<AboutHandler> weak_factory_; |
| 147 | 151 |
| 148 DISALLOW_COPY_AND_ASSIGN(AboutHandler); | 152 DISALLOW_COPY_AND_ASSIGN(AboutHandler); |
| 149 }; | 153 }; |
| 150 | 154 |
| 151 } // namespace settings | 155 } // namespace settings |
| 152 | 156 |
| 153 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ | 157 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ |
| OLD | NEW |