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

Unified Diff: extensions/renderer/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/script_injection_manager.cc ('k') | extensions/renderer/user_script_injector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injector.h
diff --git a/extensions/renderer/script_injector.h b/extensions/renderer/script_injector.h
index 9b4aca96b9d479b39652b54aa21de60d538f9629..eeea4ea12ca4d424a0f086065a634b4e47c981b2 100644
--- a/extensions/renderer/script_injector.h
+++ b/extensions/renderer/script_injector.h
@@ -13,13 +13,13 @@
#include "third_party/WebKit/public/web/WebScriptSource.h"
class GURL;
+class InjectionHost;
namespace blink {
class WebFrame;
}
namespace extensions {
-class Extension;
struct ScriptsRunInfo;
// The pseudo-delegate class for a ScriptInjection that provides all necessary
@@ -61,7 +61,7 @@ class ScriptInjector {
// Returns true if the script should execute on the given |frame|.
virtual PermissionsData::AccessType CanExecuteOnFrame(
- const Extension* extension,
+ const InjectionHost* injection_host,
blink::WebFrame* web_frame,
int tab_id,
const GURL& top_url) const = 0;
« no previous file with comments | « extensions/renderer/script_injection_manager.cc ('k') | extensions/renderer/user_script_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698