| 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,
|
|
|