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

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

Issue 808773005: Move most of the component updater artifacts to update_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_
6 #define COMPONENTS_COMPONENT_UPDATER_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
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/version.h" 13 #include "base/version.h"
14 #include "components/component_updater/component_updater_service.h" 14 #include "components/update_client/crx_downloader.h"
15 #include "components/component_updater/crx_downloader.h" 15 #include "components/update_client/update_client.h"
16 16
17 namespace component_updater { 17 namespace update_client {
18 18
19 // This is the one and only per-item state structure. Designed to be hosted 19 // This is the one and only per-item state structure. Designed to be hosted
20 // in a std::vector or a std::list. The two main members are |component| 20 // in a std::vector or a std::list. The two main members are |component|
21 // which is supplied by the the component updater client and |status| which 21 // which is supplied by the the component updater client and |status| which
22 // is modified as the item is processed by the update pipeline. The expected 22 // is modified as the item is processed by the update pipeline. The expected
23 // transition graph is: 23 // transition graph is:
24 // 24 //
25 // on-demand on-demand 25 // on-demand on-demand
26 // +---------------------------> kNew <--------------+-------------+ 26 // +---------------------------> kNew <--------------+-------------+
27 // | | | | 27 // | | | |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 public: 117 public:
118 explicit FindById(const std::string& id) : id_(id) {} 118 explicit FindById(const std::string& id) : id_(id) {}
119 119
120 bool operator()(CrxUpdateItem* item) const { return item->id == id_; } 120 bool operator()(CrxUpdateItem* item) const { return item->id == id_; }
121 121
122 private: 122 private:
123 const std::string& id_; 123 const std::string& id_;
124 }; 124 };
125 }; 125 };
126 126
127 } // namespace component_updater 127 } // namespace update_client
128 128
129 #endif // COMPONENTS_COMPONENT_UPDATER_CRX_UPDATE_ITEM_H_ 129 #endif // COMPONENTS_UPDATE_CLIENT_CRX_UPDATE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698