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

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

Issue 264763002: Support remote installation of extensions and apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 7 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 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 // Did the extension ask to escalate its permission during an upgrade? 248 // Did the extension ask to escalate its permission during an upgrade?
249 bool DidExtensionEscalatePermissions(const std::string& id); 249 bool DidExtensionEscalatePermissions(const std::string& id);
250 250
251 // If |did_escalate| is true, the preferences for |extension| will be set to 251 // If |did_escalate| is true, the preferences for |extension| will be set to
252 // require the install warning when the user tries to enable. 252 // require the install warning when the user tries to enable.
253 void SetDidExtensionEscalatePermissions( 253 void SetDidExtensionEscalatePermissions(
254 const Extension* extension, 254 const Extension* extension,
255 bool did_escalate); 255 bool did_escalate);
256 256
257 // Getter and setters for disabled reason. 257 // Getters and setters for disabled reason.
258 int GetDisableReasons(const std::string& extension_id) const; 258 int GetDisableReasons(const std::string& extension_id) const;
259 bool HasDisableReason(const std::string& extension_id,
260 Extension::DisableReason disable_reason) const;
259 void AddDisableReason(const std::string& extension_id, 261 void AddDisableReason(const std::string& extension_id,
260 Extension::DisableReason disable_reason); 262 Extension::DisableReason disable_reason);
261 void RemoveDisableReason(const std::string& extension_id, 263 void RemoveDisableReason(const std::string& extension_id,
262 Extension::DisableReason disable_reason); 264 Extension::DisableReason disable_reason);
263 void ClearDisableReasons(const std::string& extension_id); 265 void ClearDisableReasons(const std::string& extension_id);
264 266
265 // Gets the set of extensions that have been blacklisted in prefs. This will 267 // Gets the set of extensions that have been blacklisted in prefs. This will
266 // return only the blocked extensions, not the "greylist" extensions. 268 // return only the blocked extensions, not the "greylist" extensions.
267 // TODO(oleg): Make method names consistent here, in extension service and in 269 // TODO(oleg): Make method names consistent here, in extension service and in
268 // blacklist. 270 // blacklist.
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 bool extensions_disabled_; 715 bool extensions_disabled_;
714 716
715 ObserverList<ExtensionPrefsObserver> observer_list_; 717 ObserverList<ExtensionPrefsObserver> observer_list_;
716 718
717 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 719 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
718 }; 720 };
719 721
720 } // namespace extensions 722 } // namespace extensions
721 723
722 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 724 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698