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_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 std::string GetAppNotificationClientId(const std::string& extension_id) const; | 204 std::string GetAppNotificationClientId(const std::string& extension_id) const; |
205 void SetAppNotificationClientId(const std::string& extension_id, | 205 void SetAppNotificationClientId(const std::string& extension_id, |
206 const std::string& oauth_client_id); | 206 const std::string& oauth_client_id); |
207 | 207 |
208 // Whether app notifications are disabled for the given app. | 208 // Whether app notifications are disabled for the given app. |
209 bool IsAppNotificationDisabled(const std::string& extension_id) const; | 209 bool IsAppNotificationDisabled(const std::string& extension_id) const; |
210 void SetAppNotificationDisabled(const std::string& extension_id, bool value); | 210 void SetAppNotificationDisabled(const std::string& extension_id, bool value); |
211 | 211 |
212 // ManagementPolicy::Provider | 212 // ManagementPolicy::Provider |
213 // These methods apply admin policy to extensions. | 213 // These methods apply admin policy to extensions. |
214 virtual std::string GetPolicyProviderName() const OVERRIDE; | 214 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; |
215 virtual bool UserMayLoad(const extensions::Extension* extension, | 215 virtual bool UserMayLoad(const extensions::Extension* extension, |
216 string16* error) const OVERRIDE; | 216 string16* error) const OVERRIDE; |
217 virtual bool UserMayModifySettings(const extensions::Extension* extension, | 217 virtual bool UserMayModifySettings(const extensions::Extension* extension, |
218 string16* error) const OVERRIDE; | 218 string16* error) const OVERRIDE; |
219 virtual bool MustRemainEnabled(const extensions::Extension* extension, | 219 virtual bool MustRemainEnabled(const extensions::Extension* extension, |
220 string16* error) const OVERRIDE; | 220 string16* error) const OVERRIDE; |
221 | 221 |
222 // Checks if extensions are blacklisted by default, by policy. | 222 // Checks if extensions are blacklisted by default, by policy. |
223 // The ManagementPolicy::Provider methods also take this into account, and | 223 // The ManagementPolicy::Provider methods also take this into account, and |
224 // should be used instead when the extension ID is known. | 224 // should be used instead when the extension ID is known. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 // Contains all the logic for handling the order for various extension | 542 // Contains all the logic for handling the order for various extension |
543 // properties. | 543 // properties. |
544 scoped_ptr<ExtensionSorting> extension_sorting_; | 544 scoped_ptr<ExtensionSorting> extension_sorting_; |
545 | 545 |
546 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; | 546 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; |
547 | 547 |
548 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 548 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
549 }; | 549 }; |
550 | 550 |
551 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 551 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |