| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Builds the map of state attributes by serializing this object state. | 41 // Builds the map of state attributes by serializing this object state. |
| 42 Attributes BuildAttributes() const; | 42 Attributes BuildAttributes() const; |
| 43 | 43 |
| 44 static std::string GetUpdaterName(); | 44 static std::string GetUpdaterName(); |
| 45 static base::Version GetUpdaterVersion(bool is_machine); | 45 static base::Version GetUpdaterVersion(bool is_machine); |
| 46 static bool IsAutoupdateCheckEnabled(); | 46 static bool IsAutoupdateCheckEnabled(); |
| 47 static bool IsEnterpriseManaged(); | 47 static bool IsEnterpriseManaged(); |
| 48 static base::Time GetUpdaterLastStartedAU(bool is_machine); | 48 static base::Time GetUpdaterLastStartedAU(bool is_machine); |
| 49 static base::Time GetUpdaterLastChecked(bool is_machine); | 49 static base::Time GetUpdaterLastChecked(bool is_machine); |
| 50 static base::Time GetUpdaterTimeValue(bool is_machine, | 50 |
| 51 const wchar_t* value_name); | |
| 52 static int GetUpdatePolicy(); | 51 static int GetUpdatePolicy(); |
| 53 | 52 |
| 54 static std::string NormalizeTimeDelta(const base::TimeDelta& delta); | 53 static std::string NormalizeTimeDelta(const base::TimeDelta& delta); |
| 55 | 54 |
| 56 bool is_machine_ = false; | 55 bool is_machine_ = false; |
| 57 std::string updater_name_; | 56 std::string updater_name_; |
| 58 base::Version updater_version_; | 57 base::Version updater_version_; |
| 59 base::Time last_autoupdate_started_; | 58 base::Time last_autoupdate_started_; |
| 60 base::Time last_checked_; | 59 base::Time last_checked_; |
| 61 bool is_enterprise_managed_ = false; | 60 bool is_enterprise_managed_ = false; |
| 62 bool is_autoupdate_check_enabled_ = false; | 61 bool is_autoupdate_check_enabled_ = false; |
| 63 int update_policy_ = 0; | 62 int update_policy_ = 0; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace update_client | 65 } // namespace update_client |
| 67 | 66 |
| 68 #endif // COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ | 67 #endif // COMPONENTS_UPDATE_CLIENT_UPDATER_STATE_H_ |
| OLD | NEW |