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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 protected: | 324 protected: |
324 friend class base::RefCounted<UpdateClient>; | 325 friend class base::RefCounted<UpdateClient>; |
325 | 326 |
326 virtual ~UpdateClient() {} | 327 virtual ~UpdateClient() {} |
327 }; | 328 }; |
328 | 329 |
329 // Creates an instance of the update client. | 330 // Creates an instance of the update client. |
330 scoped_refptr<UpdateClient> UpdateClientFactory( | 331 scoped_refptr<UpdateClient> UpdateClientFactory( |
331 const scoped_refptr<Configurator>& config); | 332 const scoped_refptr<Configurator>& config); |
332 | 333 |
| 334 // This must be called prior to the construction of any Configurator that |
| 335 // contains a PrefService. |
| 336 void RegisterPrefs(PrefRegistrySimple* registry); |
| 337 |
333 } // namespace update_client | 338 } // namespace update_client |
334 | 339 |
335 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ | 340 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ |
OLD | NEW |