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

Unified Diff: extensions/renderer/programmatic_script_injector.h

Issue 885493007: Refactoring: de-couple Extensions from "script injection System" [render side] : 1 (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/injection_host.cc ('k') | extensions/renderer/programmatic_script_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/programmatic_script_injector.h
diff --git a/extensions/renderer/programmatic_script_injector.h b/extensions/renderer/programmatic_script_injector.h
index ef5420a5e006294fad620adbb8775da25c55fa87..e6655cdc0a714d524979fb45a4ab94590c183aff 100644
--- a/extensions/renderer/programmatic_script_injector.h
+++ b/extensions/renderer/programmatic_script_injector.h
@@ -21,7 +21,6 @@ class RenderView;
}
namespace extensions {
-class Extension;
// A ScriptInjector to handle tabs.executeScript().
class ProgrammaticScriptInjector : public ScriptInjector {
@@ -40,7 +39,7 @@ class ProgrammaticScriptInjector : public ScriptInjector {
bool ShouldInjectJs(UserScript::RunLocation run_location) const override;
bool ShouldInjectCss(UserScript::RunLocation run_location) const override;
PermissionsData::AccessType CanExecuteOnFrame(
- const Extension* extension,
+ const InjectionHost* injection_host,
blink::WebFrame* web_frame,
int tab_id,
const GURL& top_url) const override;
« no previous file with comments | « extensions/renderer/injection_host.cc ('k') | extensions/renderer/programmatic_script_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698