Chromium Code Reviews| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 virtual Status Start() = 0; | 132 virtual Status Start() = 0; |
| 133 | 133 |
| 134 // Stop doing update checks. In-flight requests and pending installations | 134 // Stop doing update checks. In-flight requests and pending installations |
| 135 // will not be canceled. | 135 // will not be canceled. |
| 136 virtual Status Stop() = 0; | 136 virtual Status Stop() = 0; |
| 137 | 137 |
| 138 // Add component to be checked for updates. You can call this method | 138 // Add component to be checked for updates. You can call this method |
| 139 // before calling Start(). | 139 // before calling Start(). |
| 140 virtual Status RegisterComponent(const CrxComponent& component) = 0; | 140 virtual Status RegisterComponent(const CrxComponent& component) = 0; |
| 141 | 141 |
| 142 // Ping for an update check for a previously registered component. | |
| 143 virtual Status PingUpdateCheck(const CrxComponent& component) = 0; | |
|
jvoung (off chromium)
2013/01/25 17:48:30
Would it make sense to add a callback parameter, o
| |
| 144 | |
| 142 virtual ~ComponentUpdateService() {} | 145 virtual ~ComponentUpdateService() {} |
| 143 }; | 146 }; |
| 144 | 147 |
| 145 // Creates the component updater. You must pass a valid |config| allocated on | 148 // Creates the component updater. You must pass a valid |config| allocated on |
| 146 // the heap which the component updater will own. | 149 // the heap which the component updater will own. |
| 147 ComponentUpdateService* ComponentUpdateServiceFactory( | 150 ComponentUpdateService* ComponentUpdateServiceFactory( |
| 148 ComponentUpdateService::Configurator* config); | 151 ComponentUpdateService::Configurator* config); |
| 149 | 152 |
| 150 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ | 153 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ |
| 151 | |
| OLD | NEW |