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

Unified Diff: chrome/browser/extensions/permissions_updater.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: chrome/browser/extensions/permissions_updater.h
diff --git a/chrome/browser/extensions/permissions_updater.h b/chrome/browser/extensions/permissions_updater.h
index f22cdc668bb779a23dbfc435c42943c0e748a2a0..c567f137e2ee8dda7a50f07b8956bafe00891c6e 100644
--- a/chrome/browser/extensions/permissions_updater.h
+++ b/chrome/browser/extensions/permissions_updater.h
@@ -9,6 +9,8 @@
#include "base/memory/ref_counted.h"
+class URLPattern;
+
gpdavis 2014/07/15 21:56:38 Will remove (see below)
namespace base {
class DictionaryValue;
}
@@ -56,6 +58,10 @@ class PermissionsUpdater {
// Revokes any requests all-hosts (or all-hosts-like) permissions.
void WithholdImpliedAllHosts(const Extension* extension);
+ void AddAlwaysAllow(const Extension* extensions, const URLPattern* pattern);
+
+ void ClearAlwaysAllow(const Extension* extensions);
+
gpdavis 2014/07/15 21:56:38 Oops-- I originally added these here, but decided
private:
enum EventType {
ADDED,

Powered by Google App Engine
This is Rietveld 408576698