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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 kChecking, | 61 kChecking, |
62 kCanUpdate, | 62 kCanUpdate, |
63 kDownloadingDiff, | 63 kDownloadingDiff, |
64 kDownloading, | 64 kDownloading, |
65 kDownloaded, | 65 kDownloaded, |
66 kUpdatingDiff, | 66 kUpdatingDiff, |
67 kUpdating, | 67 kUpdating, |
68 kUpdated, | 68 kUpdated, |
69 kUpToDate, | 69 kUpToDate, |
70 kNoUpdate, | 70 kNoUpdate, |
| 71 kUninstalled, |
71 kLastStatus | 72 kLastStatus |
72 }; | 73 }; |
73 | 74 |
74 // Call CrxUpdateService::ChangeItemState to change |status|. The function may | 75 // Call CrxUpdateService::ChangeItemState to change |status|. The function may |
75 // enforce conditions or notify observers of the change. | 76 // enforce conditions or notify observers of the change. |
76 State state; | 77 State state; |
77 | 78 |
78 std::string id; | 79 std::string id; |
79 CrxComponent component; | 80 CrxComponent component; |
80 | 81 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } | 123 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } |
123 | 124 |
124 private: | 125 private: |
125 const std::string& id_; | 126 const std::string& id_; |
126 }; | 127 }; |
127 }; | 128 }; |
128 | 129 |
129 } // namespace update_client | 130 } // namespace update_client |
130 | 131 |
131 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ | 132 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_ |
OLD | NEW |