| 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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void SetEnterpriseInfo(const std::string& domain_name); | 60 void SetEnterpriseInfo(const std::string& domain_name); |
| 61 | 61 |
| 62 // Callback from chromeos::VersionLoader giving the version. | 62 // Callback from chromeos::VersionLoader giving the version. |
| 63 void OnVersion(const std::string& version); | 63 void OnVersion(const std::string& version); |
| 64 | 64 |
| 65 // Handles asynchronously loading the version. | 65 // Handles asynchronously loading the version. |
| 66 VersionLoader version_loader_; | 66 VersionLoader version_loader_; |
| 67 // Handles asynchronously loading the boot times. | 67 // Handles asynchronously loading the boot times. |
| 68 BootTimesLoader boot_times_loader_; | 68 BootTimesLoader boot_times_loader_; |
| 69 // Used to request version and boot times. | 69 // Used to request version and boot times. |
| 70 CancelableTaskTracker tracker_; | 70 base::CancelableTaskTracker tracker_; |
| 71 | 71 |
| 72 // Information pieces for version label. | 72 // Information pieces for version label. |
| 73 std::string version_text_; | 73 std::string version_text_; |
| 74 | 74 |
| 75 // Full text for the OS version label. | 75 // Full text for the OS version label. |
| 76 std::string os_version_label_text_; | 76 std::string os_version_label_text_; |
| 77 | 77 |
| 78 ScopedVector<CrosSettings::ObserverSubscription> subscriptions_; | 78 ScopedVector<CrosSettings::ObserverSubscription> subscriptions_; |
| 79 | 79 |
| 80 chromeos::CrosSettings* cros_settings_; | 80 chromeos::CrosSettings* cros_settings_; |
| 81 | 81 |
| 82 Delegate* delegate_; | 82 Delegate* delegate_; |
| 83 | 83 |
| 84 // Weak pointer factory so we can give our callbacks for invocation | 84 // Weak pointer factory so we can give our callbacks for invocation |
| 85 // at a later time without worrying that they will actually try to | 85 // at a later time without worrying that they will actually try to |
| 86 // happen after the lifetime of this object. | 86 // happen after the lifetime of this object. |
| 87 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; | 87 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 89 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace chromeos | 92 } // namespace chromeos |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| OLD | NEW |