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

Unified Diff: extensions/renderer/user_script_set_manager.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_set.cc ('k') | extensions/renderer/user_script_set_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set_manager.h
diff --git a/extensions/renderer/user_script_set_manager.h b/extensions/renderer/user_script_set_manager.h
index 335312ccfa6afae977f9589084c11a8546d733d1..f71f4fe4c739534102d82572ab3e09dfe3c17ad4 100644
--- a/extensions/renderer/user_script_set_manager.h
+++ b/extensions/renderer/user_script_set_manager.h
@@ -56,8 +56,14 @@ class UserScriptSetManager : public content::RenderProcessObserver {
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
- const UserScriptSet* GetProgrammaticScriptsByExtension(
- const ExtensionId& extensionId);
+ // Looks up the script injection associated with |script_id| and |extension|
+ // in the context of the given |web_frame|, |tab_id|, and |url|.
+ scoped_ptr<ScriptInjection> GetInjectionForDeclarativeScript(
+ int script_id,
+ blink::WebFrame* web_frame,
+ int tab_id,
+ const GURL& url,
+ const Extension* extension);
// Put all injections from |static_scripts| and each of
// |programmatic_scripts_| into |injections|.
@@ -79,6 +85,9 @@ class UserScriptSetManager : public content::RenderProcessObserver {
// content::RenderProcessObserver implementation.
virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
+ UserScriptSet* GetProgrammaticScriptsByExtension(
+ const ExtensionId& extensionId);
+
// Handle the UpdateUserScripts extension message.
void OnUpdateUserScripts(base::SharedMemoryHandle shared_memory,
const ExtensionId& extension_id,
« no previous file with comments | « extensions/renderer/user_script_set.cc ('k') | extensions/renderer/user_script_set_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698