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

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

Issue 12054003: Add an API to component_updater that asks to do an update check "now". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698