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

Unified Diff: extensions/renderer/dispatcher.h

Issue 412643003: Fix the origin access whitelist for extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | extensions/renderer/dispatcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 3e7605cd33cecefbb3bdf60a7c74658c7976da23..b43642a9643c48f521d963d5c0ccac0758e89d8d 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -192,7 +192,13 @@ class Dispatcher : public content::RenderProcessObserver,
void UpdateActiveExtensions();
// Sets up the host permissions for |extension|.
- void UpdateOriginPermissions(const Extension* extension);
+ void InitOriginPermissions(const Extension* extension);
+
+ // Updates the host permissions for extension to include only those in
+ // |new_patterns|, and remove from |old_patterns| that are no longer allowed.
+ void UpdateOriginPermissions(const Extension* extension,
+ const URLPatternSet& new_patterns,
+ const URLPatternSet& old_patterns);
// Enable custom element whitelist in Apps.
void EnableCustomElementWhiteList();
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | extensions/renderer/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698