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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // from the command line, or when loaded as an unpacked extension). | 77 // from the command line, or when loaded as an unpacked extension). |
78 bool BlacklistedByDefault() const; | 78 bool BlacklistedByDefault() const; |
79 | 79 |
80 // Returns installation mode for an extension. | 80 // Returns installation mode for an extension. |
81 InstallationMode GetInstallationMode(const ExtensionId& id) const; | 81 InstallationMode GetInstallationMode(const ExtensionId& id) const; |
82 | 82 |
83 // Returns the force install list, in format specified by | 83 // Returns the force install list, in format specified by |
84 // ExternalPolicyLoader::AddExtension(). | 84 // ExternalPolicyLoader::AddExtension(). |
85 scoped_ptr<base::DictionaryValue> GetForceInstallList() const; | 85 scoped_ptr<base::DictionaryValue> GetForceInstallList() const; |
86 | 86 |
| 87 // Like GetForceInstallList(), but returns recommended install list instead. |
| 88 scoped_ptr<base::DictionaryValue> GetRecommendedInstallList() const; |
| 89 |
87 // Returns if an extension with id |id| is allowed to install or not. | 90 // Returns if an extension with id |id| is allowed to install or not. |
88 bool IsInstallationAllowed(const ExtensionId& id) const; | 91 bool IsInstallationAllowed(const ExtensionId& id) const; |
89 | 92 |
90 // Returns true if an extension download should be allowed to proceed. | 93 // Returns true if an extension download should be allowed to proceed. |
91 bool IsOffstoreInstallAllowed(const GURL& url, | 94 bool IsOffstoreInstallAllowed(const GURL& url, |
92 const GURL& referrer_url) const; | 95 const GURL& referrer_url) const; |
93 | 96 |
94 // Returns true if an extension with manifest type |manifest_type| is | 97 // Returns true if an extension with manifest type |manifest_type| is |
95 // allowed to be installed. | 98 // allowed to be installed. |
96 bool IsAllowedManifestType(Manifest::Type manifest_type) const; | 99 bool IsAllowedManifestType(Manifest::Type manifest_type) const; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 content::BrowserContext* context) const override; | 176 content::BrowserContext* context) const override; |
174 virtual void RegisterProfilePrefs( | 177 virtual void RegisterProfilePrefs( |
175 user_prefs::PrefRegistrySyncable* registry) override; | 178 user_prefs::PrefRegistrySyncable* registry) override; |
176 | 179 |
177 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); | 180 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); |
178 }; | 181 }; |
179 | 182 |
180 } // namespace extensions | 183 } // namespace extensions |
181 | 184 |
182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | 185 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ |
OLD | NEW |