| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CRX_UPDATE_ITEM_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 kLastStatus | 72 kLastStatus |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 // Call CrxUpdateService::ChangeItemState to change |status|. The function may | 75 // Call CrxUpdateService::ChangeItemState to change |status|. The function may |
| 76 // enforce conditions or notify observers of the change. | 76 // enforce conditions or notify observers of the change. |
| 77 State state; | 77 State state; |
| 78 | 78 |
| 79 std::string id; | 79 std::string id; |
| 80 CrxComponent component; | 80 CrxComponent component; |
| 81 | 81 |
| 82 // Time when an update check for this CRX has happened. |
| 82 base::Time last_check; | 83 base::Time last_check; |
| 83 | 84 |
| 85 // Time when the update of this CRX has begun. |
| 86 base::TimeTicks update_begin; |
| 87 |
| 84 // A component can be made available for download from several urls. | 88 // A component can be made available for download from several urls. |
| 85 std::vector<GURL> crx_urls; | 89 std::vector<GURL> crx_urls; |
| 86 std::vector<GURL> crx_diffurls; | 90 std::vector<GURL> crx_diffurls; |
| 87 | 91 |
| 88 // The cryptographic hash values for the component payload. | 92 // The cryptographic hash values for the component payload. |
| 89 std::string hash_sha256; | 93 std::string hash_sha256; |
| 90 std::string hashdiff_sha256; | 94 std::string hashdiff_sha256; |
| 91 | 95 |
| 92 // The from/to version and fingerprint values. | 96 // The from/to version and fingerprint values. |
| 93 Version previous_version; | 97 Version previous_version; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } | 132 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } |
| 129 | 133 |
| 130 private: | 134 private: |
| 131 const std::string& id_; | 135 const std::string& id_; |
| 132 }; | 136 }; |
| 133 }; | 137 }; |
| 134 | 138 |
| 135 } // namespace update_client | 139 } // namespace update_client |
| 136 | 140 |
| 137 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 141 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
| OLD | NEW |