OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_EXTENSIONS_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const std::string& successor_extension_id); | 189 const std::string& successor_extension_id); |
190 | 190 |
191 // Getter and setter for the flag that specifies whether the extension is | 191 // Getter and setter for the flag that specifies whether the extension is |
192 // being reloaded. | 192 // being reloaded. |
193 bool IsBeingReloaded(const std::string& extension_id) const; | 193 bool IsBeingReloaded(const std::string& extension_id) const; |
194 void SetBeingReloaded(const std::string& extension_id, bool value); | 194 void SetBeingReloaded(const std::string& extension_id, bool value); |
195 | 195 |
196 // Initialize and start all installed extensions. | 196 // Initialize and start all installed extensions. |
197 void Init(); | 197 void Init(); |
198 | 198 |
| 199 // See if we need to bootstrap the install verifier. |
| 200 void MaybeBootstrapVerifier(); |
| 201 |
199 // Attempts to verify all extensions using the InstallVerifier. The | 202 // Attempts to verify all extensions using the InstallVerifier. The |
200 // |bootstrap| parameter indicates whether we're doing this because the | 203 // |bootstrap| parameter indicates whether we're doing this because the |
201 // InstallVerifier needed to be bootstrapped (otherwise it's for another | 204 // InstallVerifier needed to be bootstrapped (otherwise it's for another |
202 // reason, e.g. extension install/uninstall). | 205 // reason, e.g. extension install/uninstall). |
203 void VerifyAllExtensions(bool bootstrap); | 206 void VerifyAllExtensions(bool bootstrap); |
204 | 207 |
205 // Once the verifier work is finished, we may want to re-check management | 208 // Once the verifier work is finished, we may want to re-check management |
206 // policy if |success| indicates the verifier got a new signature back. | 209 // policy if |success| indicates the verifier got a new signature back. |
207 void FinishVerifyAllExtensions(bool bootstrap, bool success); | 210 void FinishVerifyAllExtensions(bool bootstrap, bool success); |
208 | 211 |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
847 GreylistedExtensionDisabled); | 850 GreylistedExtensionDisabled); |
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
849 GreylistDontEnableManuallyDisabled); | 852 GreylistDontEnableManuallyDisabled); |
850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
851 GreylistUnknownDontChange); | 854 GreylistUnknownDontChange); |
852 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 855 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
853 }; | 856 }; |
854 | 857 |
855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 858 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |