Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed Evan's nits Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_managed_mode_apitest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698