OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Set enterprise domain name. | 56 // Set enterprise domain name. |
57 void SetEnterpriseInfo(const std::string& domain_name, | 57 void SetEnterpriseInfo(const std::string& domain_name, |
58 const std::string& status_text); | 58 const std::string& status_text); |
59 | 59 |
60 // Callback from chromeos::VersionLoader giving the version. | 60 // Callback from chromeos::VersionLoader giving the version. |
61 void OnVersion(VersionLoader::Handle handle, std::string version); | 61 void OnVersion(VersionLoader::Handle handle, std::string version); |
62 // Callback from chromeos::InfoLoader giving the boot times. | 62 // Callback from chromeos::InfoLoader giving the boot times. |
63 void OnBootTimes( | 63 void OnBootTimes( |
64 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); | 64 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); |
| 65 // Null callback from chromeos::InfoLoader. |
| 66 void OnBootTimesNoop( |
| 67 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); |
65 | 68 |
66 // Handles asynchronously loading the version. | 69 // Handles asynchronously loading the version. |
67 VersionLoader version_loader_; | 70 VersionLoader version_loader_; |
68 // Used to request the version. | 71 // Used to request the version. |
69 CancelableRequestConsumer version_consumer_; | 72 CancelableRequestConsumer version_consumer_; |
70 | 73 |
71 // Handles asynchronously loading the boot times. | 74 // Handles asynchronously loading the boot times. |
72 BootTimesLoader boot_times_loader_; | 75 BootTimesLoader boot_times_loader_; |
73 // Used to request the boot times. | 76 // Used to request the boot times. |
74 CancelableRequestConsumer boot_times_consumer_; | 77 CancelableRequestConsumer boot_times_consumer_; |
(...skipping 11 matching lines...) Expand all Loading... |
86 cloud_policy_registrar_; | 89 cloud_policy_registrar_; |
87 | 90 |
88 Delegate* delegate_; | 91 Delegate* delegate_; |
89 | 92 |
90 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 93 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
91 }; | 94 }; |
92 | 95 |
93 } // namespace chromeos | 96 } // namespace chromeos |
94 | 97 |
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
96 | |
OLD | NEW |