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 <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 const base::CommandLine* command_line, | 195 const base::CommandLine* command_line, |
196 const base::FilePath& install_directory, | 196 const base::FilePath& install_directory, |
197 extensions::ExtensionPrefs* extension_prefs, | 197 extensions::ExtensionPrefs* extension_prefs, |
198 extensions::Blacklist* blacklist, | 198 extensions::Blacklist* blacklist, |
199 bool autoupdate_enabled, | 199 bool autoupdate_enabled, |
200 bool extensions_enabled, | 200 bool extensions_enabled, |
201 extensions::OneShotEvent* ready); | 201 extensions::OneShotEvent* ready); |
202 | 202 |
203 ~ExtensionService() override; | 203 ~ExtensionService() override; |
204 | 204 |
205 extensions::ExtensionPrefs* extension_prefs() { return extension_prefs_; } | |
Devlin
2017/04/19 19:18:33
We should probably just let folks get ExtensionPre
catmullings
2017/04/20 02:01:59
Done.
| |
206 | |
205 // ExtensionServiceInterface implementation. | 207 // ExtensionServiceInterface implementation. |
206 // | 208 // |
207 // NOTE: Many of these methods are DEPRECATED. See the interface for details. | 209 // NOTE: Many of these methods are DEPRECATED. See the interface for details. |
208 extensions::PendingExtensionManager* pending_extension_manager() override; | 210 extensions::PendingExtensionManager* pending_extension_manager() override; |
209 const extensions::Extension* GetExtensionById( | 211 const extensions::Extension* GetExtensionById( |
210 const std::string& id, | 212 const std::string& id, |
211 bool include_disabled) const override; | 213 bool include_disabled) const override; |
212 const extensions::Extension* GetInstalledExtension( | 214 const extensions::Extension* GetInstalledExtension( |
213 const std::string& id) const override; | 215 const std::string& id) const override; |
214 bool UpdateExtension(const extensions::CRXFileInfo& file, | 216 bool UpdateExtension(const extensions::CRXFileInfo& file, |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
751 GreylistUnknownDontChange); | 753 GreylistUnknownDontChange); |
752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
753 ManagementPolicyProhibitsEnableOnInstalled); | 755 ManagementPolicyProhibitsEnableOnInstalled); |
754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
755 BlockAndUnblockBlacklistedExtension); | 757 BlockAndUnblockBlacklistedExtension); |
756 | 758 |
757 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 759 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
758 }; | 760 }; |
759 | 761 |
760 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 762 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |