| 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 12 matching lines...) Expand all Loading... |
| 23 // This class provides accessors to the Google Update 'ClientState' information | 23 // This class provides accessors to the Google Update 'ClientState' information |
| 24 // that recorded when the user downloads the chrome installer. It is | 24 // that recorded when the user downloads the chrome installer. It is |
| 25 // google_update.exe responsibility to write the initial values. | 25 // google_update.exe responsibility to write the initial values. |
| 26 class GoogleUpdateSettings { | 26 class GoogleUpdateSettings { |
| 27 public: | 27 public: |
| 28 // Update policy constants defined by Google Update; do not change these. | 28 // Update policy constants defined by Google Update; do not change these. |
| 29 enum UpdatePolicy { | 29 enum UpdatePolicy { |
| 30 UPDATES_DISABLED = 0, | 30 UPDATES_DISABLED = 0, |
| 31 AUTOMATIC_UPDATES = 1, | 31 AUTOMATIC_UPDATES = 1, |
| 32 MANUAL_UPDATES_ONLY = 2, | 32 MANUAL_UPDATES_ONLY = 2, |
| 33 AUTO_UPDATES_ONLY = 3, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 // Defines product data that is tracked/used by Google Update. | 36 // Defines product data that is tracked/used by Google Update. |
| 36 struct ProductData { | 37 struct ProductData { |
| 37 // The currently installed version. | 38 // The currently installed version. |
| 38 std::string version; | 39 std::string version; |
| 39 // The time that Google Update last updated this product. (This means | 40 // The time that Google Update last updated this product. (This means |
| 40 // either running an updater successfully, or doing an update check that | 41 // either running an updater successfully, or doing an update check that |
| 41 // results in no update available.) | 42 // results in no update available.) |
| 42 base::Time last_success; | 43 base::Time last_success; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // this will do nothing to |experiment_labels|. This will return true if the | 271 // this will do nothing to |experiment_labels|. This will return true if the |
| 271 // label did not exist, or was successfully read. | 272 // label did not exist, or was successfully read. |
| 272 static bool ReadExperimentLabels(bool system_install, | 273 static bool ReadExperimentLabels(bool system_install, |
| 273 string16* experiment_labels); | 274 string16* experiment_labels); |
| 274 | 275 |
| 275 private: | 276 private: |
| 276 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); | 277 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); |
| 277 }; | 278 }; |
| 278 | 279 |
| 279 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ | 280 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_SETTINGS_H_ |
| OLD | NEW |