summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/script_injector.h
diff options
context:
space:
mode:
authorhanxi <hanxi@chromium.org>2015-02-13 12:51:58 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-13 20:52:47 +0000
commita5c856cf3ea4f69aa00c6c24676e0bca3f05962a (patch)
tree6ff2b71aa632315a5d2df7f96b54b7303543e934 /extensions/renderer/script_injector.h
parenta3d81701bb7d2c162ccf85529d602ed3e4a0a258 (diff)
downloadchromium_src-a5c856cf3ea4f69aa00c6c24676e0bca3f05962a.zip
chromium_src-a5c856cf3ea4f69aa00c6c24676e0bca3f05962a.tar.gz
chromium_src-a5c856cf3ea4f69aa00c6c24676e0bca3f05962a.tar.bz2
A refacotring in the renderer side: introduce InjectionHost to de-couple extensions and to support content script injection out of chrome extensions.
BUG=437566 Review URL: https://codereview.chromium.org/885493007 Cr-Commit-Position: refs/heads/master@{#316283}
Diffstat (limited to 'extensions/renderer/script_injector.h')
-rw-r--r--extensions/renderer/script_injector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/renderer/script_injector.h b/extensions/renderer/script_injector.h
index 9b4aca9..eeea4ea 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;