| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/dom_ui/options/options_ui.h" | 10 #include "chrome/browser/dom_ui/options/options_ui.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // OptionsUIHandler implementation. | 23 // OptionsUIHandler implementation. |
| 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| 25 virtual void RegisterMessages(); | 25 virtual void RegisterMessages(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 | 28 |
| 29 void PageReady(const ListValue* args); | 29 void PageReady(const ListValue* args); |
| 30 | 30 |
| 31 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
| 32 // Initiates update check. |
| 32 void CheckNow(const ListValue* args); | 33 void CheckNow(const ListValue* args); |
| 34 |
| 35 // Restarts the system. |
| 36 void RestartNow(const ListValue* args); |
| 37 |
| 33 // Callback from chromeos::VersionLoader giving the version. | 38 // Callback from chromeos::VersionLoader giving the version. |
| 34 void OnOSVersion(chromeos::VersionLoader::Handle handle, | 39 void OnOSVersion(chromeos::VersionLoader::Handle handle, |
| 35 std::string version); | 40 std::string version); |
| 36 void UpdateStatus(const chromeos::UpdateLibrary::Status& status); | 41 void UpdateStatus(const chromeos::UpdateLibrary::Status& status); |
| 37 | 42 |
| 38 // Handles asynchronously loading the version. | 43 // Handles asynchronously loading the version. |
| 39 chromeos::VersionLoader loader_; | 44 chromeos::VersionLoader loader_; |
| 40 | 45 |
| 41 // Used to request the version. | 46 // Used to request the version. |
| 42 CancelableRequestConsumer consumer_; | 47 CancelableRequestConsumer consumer_; |
| 43 | 48 |
| 44 // Update Observer | 49 // Update Observer |
| 45 class UpdateObserver; | 50 class UpdateObserver; |
| 46 scoped_ptr<UpdateObserver> update_observer_; | 51 scoped_ptr<UpdateObserver> update_observer_; |
| 47 | 52 |
| 48 int progress_; | 53 int progress_; |
| 49 bool sticky_; | 54 bool sticky_; |
| 50 bool started_; | 55 bool started_; |
| 51 #endif | 56 #endif |
| 52 | 57 |
| 53 DISALLOW_COPY_AND_ASSIGN(AboutPageHandler); | 58 DISALLOW_COPY_AND_ASSIGN(AboutPageHandler); |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ | 61 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ABOUT_PAGE_HANDLER_H_ |
| OLD | NEW |