| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 kUpdated, | 64 kUpdated, |
| 65 kUpToDate, | 65 kUpToDate, |
| 66 kNoUpdate, | 66 kNoUpdate, |
| 67 kLastStatus | 67 kLastStatus |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // Call CrxUpdateService::ChangeItemState to change |status|. The function may | 70 // Call CrxUpdateService::ChangeItemState to change |status|. The function may |
| 71 // enforce conditions or notify observers of the change. | 71 // enforce conditions or notify observers of the change. |
| 72 Status status; | 72 Status status; |
| 73 | 73 |
| 74 // True if the component was recently unregistered and will be uninstalled |
| 75 // soon (after the currently operation is finished, if there is one). |
| 76 bool unregistered; |
| 77 |
| 74 std::string id; | 78 std::string id; |
| 75 CrxComponent component; | 79 CrxComponent component; |
| 76 | 80 |
| 77 base::Time last_check; | 81 base::Time last_check; |
| 78 | 82 |
| 79 // A component can be made available for download from several urls. | 83 // A component can be made available for download from several urls. |
| 80 std::vector<GURL> crx_urls; | 84 std::vector<GURL> crx_urls; |
| 81 std::vector<GURL> crx_diffurls; | 85 std::vector<GURL> crx_diffurls; |
| 82 | 86 |
| 83 // The from/to version and fingerprint values. | 87 // The from/to version and fingerprint values. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } | 124 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } |
| 121 | 125 |
| 122 private: | 126 private: |
| 123 const std::string& id_; | 127 const std::string& id_; |
| 124 }; | 128 }; |
| 125 }; | 129 }; |
| 126 | 130 |
| 127 } // namespace update_client | 131 } // namespace update_client |
| 128 | 132 |
| 129 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 133 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
| OLD | NEW |