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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Time when an update check for this CRX has happened. |
83 base::Time last_check; | 83 base::TimeTicks last_check; |
84 | 84 |
85 // Time when the update of this CRX has begun. | 85 // Time when the update of this CRX has begun. |
86 base::TimeTicks update_begin; | 86 base::TimeTicks update_begin; |
87 | 87 |
88 // A component can be made available for download from several urls. | 88 // A component can be made available for download from several urls. |
89 std::vector<GURL> crx_urls; | 89 std::vector<GURL> crx_urls; |
90 std::vector<GURL> crx_diffurls; | 90 std::vector<GURL> crx_diffurls; |
91 | 91 |
92 // The cryptographic hash values for the component payload. | 92 // The cryptographic hash values for the component payload. |
93 std::string hash_sha256; | 93 std::string hash_sha256; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } | 132 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } |
133 | 133 |
134 private: | 134 private: |
135 const std::string& id_; | 135 const std::string& id_; |
136 }; | 136 }; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace update_client | 139 } // namespace update_client |
140 | 140 |
141 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 141 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
OLD | NEW |