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

Side by Side Diff: chrome/browser/component_updater/component_updater_service.h

Issue 105853002: Implement a background downloader using BITS in Windows Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typos. Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 virtual size_t UrlSizeLimit() = 0; 173 virtual size_t UrlSizeLimit() = 0;
174 // The source of contexts for all the url requests. 174 // The source of contexts for all the url requests.
175 virtual net::URLRequestContextGetter* RequestContext() = 0; 175 virtual net::URLRequestContextGetter* RequestContext() = 0;
176 // True means that all ops are performed in this process. 176 // True means that all ops are performed in this process.
177 virtual bool InProcess() = 0; 177 virtual bool InProcess() = 0;
178 // Creates a new ComponentPatcher in a platform-specific way. This is useful 178 // Creates a new ComponentPatcher in a platform-specific way. This is useful
179 // for dependency injection. 179 // for dependency injection.
180 virtual ComponentPatcher* CreateComponentPatcher() = 0; 180 virtual ComponentPatcher* CreateComponentPatcher() = 0;
181 // True means that this client can handle delta updates. 181 // True means that this client can handle delta updates.
182 virtual bool DeltasEnabled() const = 0; 182 virtual bool DeltasEnabled() const = 0;
183 // True means that the background downloader can be used for downloading
184 // non on-demand components.
185 virtual bool UseBackgroundDownloader() const = 0;
183 }; 186 };
184 187
185 // Start doing update checks and installing new versions of registered 188 // Start doing update checks and installing new versions of registered
186 // components after Configurator::InitialDelay() seconds. 189 // components after Configurator::InitialDelay() seconds.
187 virtual Status Start() = 0; 190 virtual Status Start() = 0;
188 191
189 // Stop doing update checks. In-flight requests and pending installations 192 // Stop doing update checks. In-flight requests and pending installations
190 // will not be canceled. 193 // will not be canceled.
191 virtual Status Stop() = 0; 194 virtual Status Stop() = 0;
192 195
(...skipping 24 matching lines...) Expand all
217 // know the outcome of the check. 220 // know the outcome of the check.
218 virtual Status OnDemandUpdate(const std::string& component_id) = 0; 221 virtual Status OnDemandUpdate(const std::string& component_id) = 0;
219 }; 222 };
220 223
221 // Creates the component updater. You must pass a valid |config| allocated on 224 // Creates the component updater. You must pass a valid |config| allocated on
222 // the heap which the component updater will own. 225 // the heap which the component updater will own.
223 ComponentUpdateService* ComponentUpdateServiceFactory( 226 ComponentUpdateService* ComponentUpdateServiceFactory(
224 ComponentUpdateService::Configurator* config); 227 ComponentUpdateService::Configurator* config);
225 228
226 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 229 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698