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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 7508029: Add origin permissions to the extension permissions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dcheck Created 9 years, 4 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 | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_dispatcher.h
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index f1fb8e452e95e0b0b5e5d3d3a375da2a0af9de44..84a62cdf31e5b41469cc3944b9cd77b3f0a6787a 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -78,7 +78,8 @@ class ExtensionDispatcher : public RenderProcessObserver {
const std::vector<std::string>& page_actions);
void OnActivateApplication(const std::string& extension_id);
void OnActivateExtension(const std::string& extension_id);
- void OnUpdatePermissions(const std::string& extension_id,
+ void OnUpdatePermissions(int reason_id,
+ const std::string& extension_id,
const ExtensionAPIPermissionSet& apis,
const URLPatternSet& explicit_hosts,
const URLPatternSet& scriptable_hosts);
@@ -92,7 +93,10 @@ class ExtensionDispatcher : public RenderProcessObserver {
void RegisterExtension(v8::Extension* extension, bool restrict_to_extensions);
// Sets up the host permissions for |extension|.
- void InitHostPermissions(const Extension* extension);
+ void InitOriginPermissions(const Extension* extension);
+ void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason,
+ const Extension* extension,
+ const URLPatternSet& origins);
// True if this renderer is running extensions.
bool is_extension_process_;
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698