| OLD | NEW |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual int MinimumReCheckWait() = 0; | 161 virtual int MinimumReCheckWait() = 0; |
| 162 // Minimum delta time in seconds before an on-demand check is allowed | 162 // Minimum delta time in seconds before an on-demand check is allowed |
| 163 // for the same component. | 163 // for the same component. |
| 164 virtual int OnDemandDelay() = 0; | 164 virtual int OnDemandDelay() = 0; |
| 165 // The url that is going to be used update checks over Omaha protocol. | 165 // The url that is going to be used update checks over Omaha protocol. |
| 166 virtual GURL UpdateUrl() = 0; | 166 virtual GURL UpdateUrl() = 0; |
| 167 // The url where the completion pings are sent. Invalid if and only if | 167 // The url where the completion pings are sent. Invalid if and only if |
| 168 // pings are disabled. | 168 // pings are disabled. |
| 169 virtual GURL PingUrl() = 0; | 169 virtual GURL PingUrl() = 0; |
| 170 // Parameters added to each url request. It can be null if none are needed. | 170 // Parameters added to each url request. It can be null if none are needed. |
| 171 virtual const char* ExtraRequestParams() = 0; | 171 virtual std::string ExtraRequestParams() = 0; |
| 172 // How big each update request can be. Don't go above 2000. | 172 // How big each update request can be. Don't go above 2000. |
| 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. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // know the outcome of the check. | 220 // know the outcome of the check. |
| 221 virtual Status OnDemandUpdate(const std::string& component_id) = 0; | 221 virtual Status OnDemandUpdate(const std::string& component_id) = 0; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 // 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 |
| 225 // the heap which the component updater will own. | 225 // the heap which the component updater will own. |
| 226 ComponentUpdateService* ComponentUpdateServiceFactory( | 226 ComponentUpdateService* ComponentUpdateServiceFactory( |
| 227 ComponentUpdateService::Configurator* config); | 227 ComponentUpdateService::Configurator* config); |
| 228 | 228 |
| 229 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ | 229 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ |
| OLD | NEW |