| 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_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/boot_times_loader.h" | 10 #include "chrome/browser/chromeos/boot_times_loader.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void UpdateEnterpriseInfo(); | 68 void UpdateEnterpriseInfo(); |
| 69 | 69 |
| 70 // Set enterprise domain name. | 70 // Set enterprise domain name. |
| 71 void SetEnterpriseInfo(const std::string& domain_name, | 71 void SetEnterpriseInfo(const std::string& domain_name, |
| 72 const std::string& status_text, | 72 const std::string& status_text, |
| 73 bool reporting_hint); | 73 bool reporting_hint); |
| 74 | 74 |
| 75 // Callback from chromeos::VersionLoader giving the version. | 75 // Callback from chromeos::VersionLoader giving the version. |
| 76 void OnVersion(const std::string& version); | 76 void OnVersion(const std::string& version); |
| 77 // Callback from chromeos::InfoLoader giving the boot times. | 77 // Callback from chromeos::InfoLoader giving the boot times. |
| 78 void OnBootTimes( | 78 void OnBootTimes(const BootTimesLoader::BootTimes& boot_times); |
| 79 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); | |
| 80 // Null callback from chromeos::InfoLoader. | 79 // Null callback from chromeos::InfoLoader. |
| 81 void OnBootTimesNoop( | 80 void OnBootTimesNoop(const BootTimesLoader::BootTimes& boot_times); |
| 82 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); | |
| 83 | 81 |
| 84 // Handles asynchronously loading the version. | 82 // Handles asynchronously loading the version. |
| 85 VersionLoader version_loader_; | 83 VersionLoader version_loader_; |
| 86 // Used to request the version. | 84 // Used to request the version. |
| 87 CancelableTaskTracker tracker_; | 85 CancelableRequestConsumer version_consumer_; |
| 88 | 86 |
| 89 // Handles asynchronously loading the boot times. | 87 // Handles asynchronously loading the boot times. |
| 90 BootTimesLoader boot_times_loader_; | 88 BootTimesLoader boot_times_loader_; |
| 91 // Used to request the boot times. | 89 // Used to request boot times. |
| 92 CancelableRequestConsumer boot_times_consumer_; | 90 CancelableTaskTracker tracker_; |
| 93 | 91 |
| 94 // Information pieces for version label. | 92 // Information pieces for version label. |
| 95 std::string version_text_; | 93 std::string version_text_; |
| 96 std::string enterprise_domain_text_; | 94 std::string enterprise_domain_text_; |
| 97 std::string enterprise_status_text_; | 95 std::string enterprise_status_text_; |
| 98 bool enterprise_reporting_hint_; | 96 bool enterprise_reporting_hint_; |
| 99 | 97 |
| 100 // Full text for the OS version label. | 98 // Full text for the OS version label. |
| 101 std::string os_version_label_text_; | 99 std::string os_version_label_text_; |
| 102 | 100 |
| 103 // CloudPolicySubsysterm observer registrar | 101 // CloudPolicySubsysterm observer registrar |
| 104 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> | 102 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> |
| 105 cloud_policy_registrar_; | 103 cloud_policy_registrar_; |
| 106 | 104 |
| 107 chromeos::CrosSettings* cros_settings_; | 105 chromeos::CrosSettings* cros_settings_; |
| 108 | 106 |
| 109 Delegate* delegate_; | 107 Delegate* delegate_; |
| 110 | 108 |
| 111 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 109 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
| 112 }; | 110 }; |
| 113 | 111 |
| 114 } // namespace chromeos | 112 } // namespace chromeos |
| 115 | 113 |
| 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| OLD | NEW |