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

Unified Diff: extensions/renderer/user_script_set.h

Issue 492133002: Renderer changes for wiring up shared memory with declarative injection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 6 years, 4 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/user_script_injector.cc ('k') | extensions/renderer/user_script_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set.h
diff --git a/extensions/renderer/user_script_set.h b/extensions/renderer/user_script_set.h
index e5e91fd418b2158bdfa0852cbcb43467b592da97..57ea6d7f26f9e4bfbeaec19d73fa1a514db9158e 100644
--- a/extensions/renderer/user_script_set.h
+++ b/extensions/renderer/user_script_set.h
@@ -59,6 +59,14 @@ class UserScriptSet {
int tab_id,
UserScript::RunLocation run_location);
+ scoped_ptr<ScriptInjection> GetDeclarativeScriptInjection(
+ int script_id,
+ blink::WebFrame* web_frame,
+ int tab_id,
+ UserScript::RunLocation run_location,
+ const GURL& document_url,
+ const Extension* extension);
+
// Updates scripts given the shared memory region containing user scripts.
// Returns true if the scripts were successfully updated.
bool UpdateUserScripts(base::SharedMemoryHandle shared_memory,
@@ -75,7 +83,8 @@ class UserScriptSet {
int tab_id,
UserScript::RunLocation run_location,
const GURL& document_url,
- const Extension* extension);
+ const Extension* extension,
+ bool is_declarative);
// Shared memory containing raw script data.
scoped_ptr<base::SharedMemory> shared_memory_;
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | extensions/renderer/user_script_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698