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

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

Issue 2237153002: Use consistent values for enabled_component_updates throughout an update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT. Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UPDATE_ENGINE_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <queue> 10 #include <queue>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CrxDownloader::Factory crx_downloader_factory, 107 CrxDownloader::Factory crx_downloader_factory,
108 PingManager* ping_manager); 108 PingManager* ping_manager);
109 109
110 ~UpdateContext(); 110 ~UpdateContext();
111 111
112 scoped_refptr<Configurator> config; 112 scoped_refptr<Configurator> config;
113 113
114 // True if this update has been initiated by the user. 114 // True if this update has been initiated by the user.
115 bool is_foreground; 115 bool is_foreground;
116 116
117 // True if the component updates are enabled in this context.
118 const bool enabled_component_updates;
119
117 // Contains the ids of all CRXs in this context. 120 // Contains the ids of all CRXs in this context.
118 const std::vector<std::string> ids; 121 const std::vector<std::string> ids;
119 122
120 // Called before an update check, when update metadata is needed. 123 // Called before an update check, when update metadata is needed.
121 const UpdateEngine::CrxDataCallback& crx_data_callback; 124 const UpdateEngine::CrxDataCallback& crx_data_callback;
122 125
123 // Called when there is a state change for any update in this context. 126 // Called when there is a state change for any update in this context.
124 const UpdateEngine::NotifyObserversCallback notify_observers_callback; 127 const UpdateEngine::NotifyObserversCallback notify_observers_callback;
125 128
126 // Called when the all updates associated with this context have completed. 129 // Called when the all updates associated with this context have completed.
(...skipping 21 matching lines...) Expand all
148 // Contains the ids of the items to update. 151 // Contains the ids of the items to update.
149 std::queue<std::string> queue; 152 std::queue<std::string> queue;
150 153
151 // The time in seconds to wait until doing further update checks. 154 // The time in seconds to wait until doing further update checks.
152 int retry_after_sec_; 155 int retry_after_sec_;
153 }; 156 };
154 157
155 } // namespace update_client 158 } // namespace update_client
156 159
157 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_ 160 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_ENGINE_H_
OLDNEW
« no previous file with comments | « components/update_client/update_client_unittest.cc ('k') | components/update_client/update_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698