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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 std::string id; | 78 std::string id; |
79 CrxComponent component; | 79 CrxComponent component; |
80 | 80 |
81 base::Time last_check; | 81 base::Time last_check; |
82 | 82 |
83 // A component can be made available for download from several urls. | 83 // A component can be made available for download from several urls. |
84 std::vector<GURL> crx_urls; | 84 std::vector<GURL> crx_urls; |
85 std::vector<GURL> crx_diffurls; | 85 std::vector<GURL> crx_diffurls; |
86 | 86 |
87 // The from/to version and fingerprint values. | 87 // The from/to version and fingerprint values. |
88 base::Version previous_version; | 88 Version previous_version; |
89 base::Version next_version; | 89 Version next_version; |
90 std::string previous_fp; | 90 std::string previous_fp; |
91 std::string next_fp; | 91 std::string next_fp; |
92 | 92 |
93 // True if the current update check cycle is on-demand. | 93 // True if the current update check cycle is on-demand. |
94 bool on_demand; | 94 bool on_demand; |
95 | 95 |
96 // True if the differential update failed for any reason. | 96 // True if the differential update failed for any reason. |
97 bool diff_update_failed; | 97 bool diff_update_failed; |
98 | 98 |
99 // The error information for full and differential updates. | 99 // The error information for full and differential updates. |
(...skipping 22 matching lines...) Expand all Loading... |
122 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } | 122 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } |
123 | 123 |
124 private: | 124 private: |
125 const std::string& id_; | 125 const std::string& id_; |
126 }; | 126 }; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace update_client | 129 } // namespace update_client |
130 | 130 |
131 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 131 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
OLD | NEW |