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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // Check and update enterprise domain. | 67 // Check and update enterprise domain. |
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(VersionLoader::Handle handle, std::string version); | 76 void OnVersion(VersionLoader::Handle handle, 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( |
79 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); | 79 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); |
80 // Null callback from chromeos::InfoLoader. | 80 // Null callback from chromeos::InfoLoader. |
81 void OnBootTimesNoop( | 81 void OnBootTimesNoop( |
82 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); | 82 BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times); |
83 | 83 |
84 // Handles asynchronously loading the version. | 84 // Handles asynchronously loading the version. |
85 VersionLoader version_loader_; | 85 VersionLoader version_loader_; |
86 // Used to request the version. | 86 // Used to request the version. |
(...skipping 20 matching lines...) Expand all Loading... |
107 chromeos::CrosSettings* cros_settings_; | 107 chromeos::CrosSettings* cros_settings_; |
108 | 108 |
109 Delegate* delegate_; | 109 Delegate* delegate_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 111 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace chromeos | 114 } // namespace chromeos |
115 | 115 |
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
OLD | NEW |