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

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

Issue 25883006: Support asynchronous patching operations in the component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tests
Patch Set: sorin@ review Created 6 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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
11 #include "base/version.h" 11 #include "base/version.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 class ComponentsUI; 14 class ComponentsUI;
15 15
16 namespace base { 16 namespace base {
17 class DictionaryValue; 17 class DictionaryValue;
18 class FilePath; 18 class FilePath;
19 } 19 }
20 20
21 namespace net { 21 namespace net {
22 class URLRequestContextGetter; 22 class URLRequestContextGetter;
23 class URLRequest; 23 class URLRequest;
24 } 24 }
25 25
26 namespace component_updater {
27 class OnDemandTester;
28 }
29
30 namespace content { 26 namespace content {
31 class ResourceThrottle; 27 class ResourceThrottle;
32 } 28 }
33 29
34 namespace component_updater { 30 namespace component_updater {
35 31
32 class OnDemandTester;
36 class ComponentPatcher; 33 class ComponentPatcher;
37 34
38 // Component specific installers must derive from this class and implement 35 // Component specific installers must derive from this class and implement
39 // OnUpdateError() and Install(). A valid instance of this class must be 36 // OnUpdateError() and Install(). A valid instance of this class must be
40 // given to ComponentUpdateService::RegisterComponent(). 37 // given to ComponentUpdateService::RegisterComponent().
41 class ComponentInstaller { 38 class ComponentInstaller {
42 public : 39 public :
43 // Called by the component updater on the UI thread when there was a 40 // Called by the component updater on the UI thread when there was a
44 // problem unpacking or verifying the component. |error| is a non-zero 41 // problem unpacking or verifying the component. |error| is a non-zero
45 // value which is only meaningful to the component updater. 42 // value which is only meaningful to the component updater.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 }; 220 };
224 221
225 // Creates the component updater. You must pass a valid |config| allocated on 222 // Creates the component updater. You must pass a valid |config| allocated on
226 // the heap which the component updater will own. 223 // the heap which the component updater will own.
227 ComponentUpdateService* ComponentUpdateServiceFactory( 224 ComponentUpdateService* ComponentUpdateServiceFactory(
228 ComponentUpdateService::Configurator* config); 225 ComponentUpdateService::Configurator* config);
229 226
230 } // namespace component_updater 227 } // namespace component_updater
231 228
232 #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