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

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, 10 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 | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
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 021fc943157202a9e092501fb8dc1edca0cf9adf..44cb751a01e67321327e4affb5f6d52651b6f233 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -189,6 +189,15 @@ 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,
+ bool update_origin_whitelist,
+ int tab_id);
+ void OnClearTabSpecificPermissions(
+ const std::vector<std::string>& extension_ids,
+ bool update_origin_whitelist,
+ int tab_id);
void OnUsingWebRequestAPI(bool webrequest_used);
// UserScriptSetManager::Observer implementation.
@@ -200,9 +209,9 @@ 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
+ // Updates the host permissions for the extension url to include only those in
// |new_patterns|, and remove from |old_patterns| that are no longer allowed.
- void UpdateOriginPermissions(const Extension* extension,
+ void UpdateOriginPermissions(const GURL& extension_url,
const URLPatternSet& old_patterns,
const URLPatternSet& new_patterns);
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698