| 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 COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // Returns a PrefService that the update_client can use to store persistent | 126 // Returns a PrefService that the update_client can use to store persistent |
| 127 // update information. The PrefService must outlive the entire update_client, | 127 // update information. The PrefService must outlive the entire update_client, |
| 128 // and be safe to access from the thread the update_client is constructed | 128 // and be safe to access from the thread the update_client is constructed |
| 129 // on. | 129 // on. |
| 130 // Returning null is safe and will disable any functionality that requires | 130 // Returning null is safe and will disable any functionality that requires |
| 131 // persistent storage. | 131 // persistent storage. |
| 132 virtual PrefService* GetPrefService() const = 0; | 132 virtual PrefService* GetPrefService() const = 0; |
| 133 | 133 |
| 134 // Returns true if the Chrome is installed for the current user only, or false | 134 // Returns true if the Chrome is installed for the current user only, or false |
| 135 // if Chrome is installed for all users on the machine. | 135 // if Chrome is installed for all users on the machine. This function must be |
| 136 // called only from a blocking pool thread, as it may access the file system. |
| 136 virtual bool IsPerUserInstall() const = 0; | 137 virtual bool IsPerUserInstall() const = 0; |
| 137 | 138 |
| 138 protected: | 139 protected: |
| 139 friend class base::RefCountedThreadSafe<Configurator>; | 140 friend class base::RefCountedThreadSafe<Configurator>; |
| 140 | 141 |
| 141 virtual ~Configurator() {} | 142 virtual ~Configurator() {} |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 } // namespace update_client | 145 } // namespace update_client |
| 145 | 146 |
| 146 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 147 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| OLD | NEW |