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

Unified Diff: extensions/renderer/injection_host.h

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix extension page content scripts Created 5 years, 7 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/injection_host.h
diff --git a/extensions/renderer/injection_host.h b/extensions/renderer/injection_host.h
index 4dcb225f2aedd8a644c1203a61f22e91c1fad91c..d7f4b7e9935bfbefb6a6493d923866333ef7d3a4 100644
--- a/extensions/renderer/injection_host.h
+++ b/extensions/renderer/injection_host.h
@@ -9,6 +9,10 @@
#include "extensions/common/permissions/permissions_data.h"
#include "url/gurl.h"
+namespace blink {
+class WebFrame;
+}
+
// An interface for all kinds of hosts who own user scripts.
class InjectionHost {
public:
@@ -26,7 +30,7 @@ class InjectionHost {
// Returns true if the script should execute.
virtual extensions::PermissionsData::AccessType CanExecuteOnFrame(
const GURL& document_url,
- const GURL& top_frame_url,
+ blink::WebFrame* web_frame,
int tab_id,
bool is_declarative) const = 0;

Powered by Google App Engine
This is Rietveld 408576698