OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // is achieved using a template method. | 121 // is achieved using a template method. |
122 // | 122 // |
123 // State changes of a CRX could generate events, which are observed using a | 123 // State changes of a CRX could generate events, which are observed using a |
124 // subject-observer interface. | 124 // subject-observer interface. |
125 // | 125 // |
126 // The actions chain up. In some sense, the actions implement a state machine, | 126 // The actions chain up. In some sense, the actions implement a state machine, |
127 // as the CRX undergoes a series of state transitions in the process of | 127 // as the CRX undergoes a series of state transitions in the process of |
128 // being checked for updates and applying the update. | 128 // being checked for updates and applying the update. |
129 | 129 |
130 class ComponentsUI; | 130 class ComponentsUI; |
| 131 class PrefRegistrySimple; |
131 | 132 |
132 namespace base { | 133 namespace base { |
133 class DictionaryValue; | 134 class DictionaryValue; |
134 class FilePath; | 135 class FilePath; |
135 } | 136 } |
136 | 137 |
137 namespace update_client { | 138 namespace update_client { |
138 | 139 |
139 class Configurator; | 140 class Configurator; |
140 struct CrxUpdateItem; | 141 struct CrxUpdateItem; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 protected: | 323 protected: |
323 friend class base::RefCounted<UpdateClient>; | 324 friend class base::RefCounted<UpdateClient>; |
324 | 325 |
325 virtual ~UpdateClient() {} | 326 virtual ~UpdateClient() {} |
326 }; | 327 }; |
327 | 328 |
328 // Creates an instance of the update client. | 329 // Creates an instance of the update client. |
329 scoped_refptr<UpdateClient> UpdateClientFactory( | 330 scoped_refptr<UpdateClient> UpdateClientFactory( |
330 const scoped_refptr<Configurator>& config); | 331 const scoped_refptr<Configurator>& config); |
331 | 332 |
| 333 // This must be called prior to the construction of any Configurator that |
| 334 // contains a PrefService. |
| 335 void RegisterPrefs(PrefRegistrySimple* registry); |
| 336 |
332 } // namespace update_client | 337 } // namespace update_client |
333 | 338 |
334 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 339 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
OLD | NEW |