OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H
_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H
_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H
_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H
_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "components/update_client/configurator.h" | 9 #include "components/update_client/configurator.h" |
10 | 10 |
| 11 class PrefRegistrySimple; |
11 class PrefService; | 12 class PrefService; |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class CommandLine; | 15 class CommandLine; |
15 } | 16 } |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
19 } | 20 } |
20 | 21 |
21 namespace component_updater { | 22 namespace component_updater { |
22 | 23 |
| 24 // Registers preferences associated with the component updater configurator |
| 25 // for Chrome. The preferences must be registered with the local pref store |
| 26 // before they can be queried by the configurator instance. |
| 27 // This function is called before MakeChromeComponentUpdaterConfigurator. |
| 28 void RegisterPrefsForChromeComponentUpdaterConfigurator( |
| 29 PrefRegistrySimple* registry); |
| 30 |
23 scoped_refptr<update_client::Configurator> | 31 scoped_refptr<update_client::Configurator> |
24 MakeChromeComponentUpdaterConfigurator( | 32 MakeChromeComponentUpdaterConfigurator( |
25 const base::CommandLine* cmdline, | 33 const base::CommandLine* cmdline, |
26 net::URLRequestContextGetter* context_getter, | 34 net::URLRequestContextGetter* context_getter, |
27 PrefService* pref_service); | 35 PrefService* pref_service); |
28 | 36 |
29 } // namespace component_updater | 37 } // namespace component_updater |
30 | 38 |
31 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATO
R_H_ | 39 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATO
R_H_ |
OLD | NEW |