Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: components/update_client/crx_update_item.h

Issue 2336913003: Mechanical change of base::Time to base::TimeTicks in the component updater. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/update_client/background_downloader_win.cc ('k') | components/update_client/update_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698