| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_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 | 72 |
| 73 // Call CrxUpdateService::ChangeItemState to change |status|. The function may | 73 // Call CrxUpdateService::ChangeItemState to change |status|. The function may |
| 74 // enforce conditions or notify observers of the change. | 74 // enforce conditions or notify observers of the change. |
| 75 Status status; | 75 Status status; |
| 76 | 76 |
| 77 std::string id; | 77 std::string id; |
| 78 CrxComponent component; | 78 CrxComponent component; |
| 79 | 79 |
| 80 base::Time last_check; | 80 base::Time last_check; |
| 81 | 81 |
| 82 // The url the full and differential update CRXs are downloaded from. | 82 // A component can be made available for download from several urls. |
| 83 GURL crx_url; | 83 std::vector<GURL> crx_urls; |
| 84 GURL diff_crx_url; | 84 std::vector<GURL> crx_diffurls; |
| 85 | 85 |
| 86 // The from/to version and fingerprint values. | 86 // The from/to version and fingerprint values. |
| 87 Version previous_version; | 87 Version previous_version; |
| 88 Version next_version; | 88 Version next_version; |
| 89 std::string previous_fp; | 89 std::string previous_fp; |
| 90 std::string next_fp; | 90 std::string next_fp; |
| 91 | 91 |
| 92 // True if the current update check cycle is on-demand. | 92 // True if the current update check cycle is on-demand. |
| 93 bool on_demand; | 93 bool on_demand; |
| 94 | 94 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 124 return (item->id == id_); | 124 return (item->id == id_); |
| 125 } | 125 } |
| 126 private: | 126 private: |
| 127 const std::string& id_; | 127 const std::string& id_; |
| 128 }; | 128 }; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace component_updater | 131 } // namespace component_updater |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ | 133 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ |
| OLD | NEW |