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

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: Improve/fix InitImpl() 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 std::string GetAppNotificationClientId(const std::string& extension_id) const; 205 std::string GetAppNotificationClientId(const std::string& extension_id) const;
206 void SetAppNotificationClientId(const std::string& extension_id, 206 void SetAppNotificationClientId(const std::string& extension_id,
207 const std::string& oauth_client_id); 207 const std::string& oauth_client_id);
208 208
209 // Whether app notifications are disabled for the given app. 209 // Whether app notifications are disabled for the given app.
210 bool IsAppNotificationDisabled(const std::string& extension_id) const; 210 bool IsAppNotificationDisabled(const std::string& extension_id) const;
211 void SetAppNotificationDisabled(const std::string& extension_id, bool value); 211 void SetAppNotificationDisabled(const std::string& extension_id, bool value);
212 212
213 // ManagementPolicy::Provider 213 // ManagementPolicy::Provider
214 // These methods apply admin policy to extensions. 214 // These methods apply admin policy to extensions.
215 virtual std::string GetPolicyProviderName() const OVERRIDE; 215 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
216 virtual bool UserMayLoad(const extensions::Extension* extension, 216 virtual bool UserMayLoad(const extensions::Extension* extension,
217 string16* error) const OVERRIDE; 217 string16* error) const OVERRIDE;
218 virtual bool UserMayModifySettings(const extensions::Extension* extension, 218 virtual bool UserMayModifySettings(const extensions::Extension* extension,
219 string16* error) const OVERRIDE; 219 string16* error) const OVERRIDE;
220 virtual bool MustRemainEnabled(const extensions::Extension* extension, 220 virtual bool MustRemainEnabled(const extensions::Extension* extension,
221 string16* error) const OVERRIDE; 221 string16* error) const OVERRIDE;
222 222
223 // Checks if extensions are blacklisted by default, by policy. 223 // Checks if extensions are blacklisted by default, by policy.
224 // The ManagementPolicy::Provider methods also take this into account, and 224 // The ManagementPolicy::Provider methods also take this into account, and
225 // should be used instead when the extension ID is known. 225 // should be used instead when the extension ID is known.
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // Contains all the logic for handling the order for various extension 557 // Contains all the logic for handling the order for various extension
558 // properties. 558 // properties.
559 scoped_ptr<ExtensionSorting> extension_sorting_; 559 scoped_ptr<ExtensionSorting> extension_sorting_;
560 560
561 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; 561 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_;
562 562
563 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 563 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
564 }; 564 };
565 565
566 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 566 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698