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

Unified Diff: extensions/renderer/dispatcher.h

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 021fc943157202a9e092501fb8dc1edca0cf9adf..b022e5b069e77a01a7863bd8128fa1d24b635ef0 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -189,6 +189,13 @@ class Dispatcher : public content::RenderProcessObserver,
void OnTransferBlobs(const std::vector<std::string>& blob_uuids);
void OnUnloaded(const std::string& id);
void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
+ void OnUpdateTabSpecificPermissions(const GURL& visible_url,
+ const std::string& extension_id,
+ const URLPatternSet& new_hosts,
+ int tab_id);
+ void OnClearTabSpecificPermissions(
+ const std::vector<std::string>& extension_ids,
+ int tab_id);
void OnUsingWebRequestAPI(bool webrequest_used);
// UserScriptSetManager::Observer implementation.
@@ -200,11 +207,10 @@ class Dispatcher : public content::RenderProcessObserver,
// Sets up the host permissions for |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.
+ // Updates the host permissions for extension to include only those currently
+ // in the extensions permissions, and removes any others in |old_patterns|.
void UpdateOriginPermissions(const Extension* extension,
- const URLPatternSet& old_patterns,
- const URLPatternSet& new_patterns);
+ const URLPatternSet& old_patterns);
// Enable custom element whitelist in Apps.
void EnableCustomElementWhiteList();

Powered by Google App Engine
This is Rietveld 408576698