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

Unified Diff: extensions/renderer/user_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: Devlin's comments. 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
Index: extensions/renderer/user_script_injector.h
diff --git a/extensions/renderer/user_script_injector.h b/extensions/renderer/user_script_injector.h
index 85e557891334fd5faa8392f4b7ceafd2ca5a1dbd..2d04d8559e6d739ef253f97ecb12f203c84502e9 100644
--- a/extensions/renderer/user_script_injector.h
+++ b/extensions/renderer/user_script_injector.h
@@ -10,15 +10,17 @@
#include "base/memory/scoped_ptr.h"
#include "base/scoped_observer.h"
#include "extensions/common/user_script.h"
+#include "extensions/renderer/injection_host.h"
#include "extensions/renderer/script_injection.h"
#include "extensions/renderer/user_script_set.h"
+class InjectionHost;
+
namespace blink {
class WebFrame;
}
namespace extensions {
-class Extension;
// A ScriptInjector for UserScripts.
class UserScriptInjector : public ScriptInjector,
@@ -43,7 +45,7 @@ class UserScriptInjector : 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;

Powered by Google App Engine
This is Rietveld 408576698