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_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // Group Policy settings. |is_overridden|, if non-NULL, is populated with | 225 // Group Policy settings. |is_overridden|, if non-NULL, is populated with |
226 // true if an app-specific policy override is in force, or false otherwise. | 226 // true if an app-specific policy override is in force, or false otherwise. |
227 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, | 227 static UpdatePolicy GetAppUpdatePolicy(const std::wstring& app_guid, |
228 bool* is_overridden); | 228 bool* is_overridden); |
229 | 229 |
230 // Returns Google Update's uninstall command line, or an empty string if none | 230 // Returns Google Update's uninstall command line, or an empty string if none |
231 // is found. | 231 // is found. |
232 static base::string16 GetUninstallCommandLine(bool system_install); | 232 static base::string16 GetUninstallCommandLine(bool system_install); |
233 | 233 |
234 // Returns the version of Google Update that is installed. | 234 // Returns the version of Google Update that is installed. |
235 static base::Version GetGoogleUpdateVersion(bool system_install); | 235 static Version GetGoogleUpdateVersion(bool system_install); |
236 | 236 |
237 // Returns the time at which Google Update last started an automatic update | 237 // Returns the time at which Google Update last started an automatic update |
238 // check, or the null time if this information isn't available. | 238 // check, or the null time if this information isn't available. |
239 static base::Time GetGoogleUpdateLastStartedAU(bool system_install); | 239 static base::Time GetGoogleUpdateLastStartedAU(bool system_install); |
240 | 240 |
241 // Returns the time at which Google Update last successfully contacted Google | 241 // Returns the time at which Google Update last successfully contacted Google |
242 // servers and got a valid check response, or the null time if this | 242 // servers and got a valid check response, or the null time if this |
243 // information isn't available. | 243 // information isn't available. |
244 static base::Time GetGoogleUpdateLastChecked(bool system_install); | 244 static base::Time GetGoogleUpdateLastChecked(bool system_install); |
245 | 245 |
(...skipping 29 matching lines...) Expand all Loading... |
275 // this will do nothing to |experiment_labels|. This will return true if the | 275 // this will do nothing to |experiment_labels|. This will return true if the |
276 // label did not exist, or was successfully read. | 276 // label did not exist, or was successfully read. |
277 static bool ReadExperimentLabels(bool system_install, | 277 static bool ReadExperimentLabels(bool system_install, |
278 base::string16* experiment_labels); | 278 base::string16* experiment_labels); |
279 | 279 |
280 private: | 280 private: |
281 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 281 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
282 }; | 282 }; |
283 | 283 |
284 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 284 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
OLD | NEW |