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

Unified Diff: extensions/browser/extension_prefs.h

Issue 396033002: Support "always allow" for runtime script execution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index 4c6adf698cea0c45e5cd995292139c9fe9575fcc..51ddadfb6bffa95f9e54eaddf7385098809ad3c0 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -400,6 +400,14 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
void SetActivePermissions(const std::string& extension_id,
const PermissionSet* permissions);
+ bool GetPersistedPermissions(const std::string& extension_id,
+ URLPatternSet* persisted_permissions);
+
+ void AddPersistedPermission(const Extension* extension,
+ const URLPattern* pattern);
+
+ void ClearPersistedPermissions(const Extension* extension);
+
// Records whether or not this extension is currently running.
void SetExtensionRunning(const std::string& extension_id, bool is_running);

Powered by Google App Engine
This is Rietveld 408576698