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

Unified Diff: extensions/renderer/user_script_set_manager.h

Issue 934763003: Refactoring: de-couple Extensions from "script injection System" [render side]:3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_brower_isolated_world_routingid_user_script_1
Patch Set: Reset InjectionHost in ScriptInjection when extension is unloaded. 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_set_manager.h
diff --git a/extensions/renderer/user_script_set_manager.h b/extensions/renderer/user_script_set_manager.h
index d102ea33e2b1ec7e3d18cf2d9e9313e41c8b813c..4b5e4f053d72d9c3139e82610e900f1532ca8991 100644
--- a/extensions/renderer/user_script_set_manager.h
+++ b/extensions/renderer/user_script_set_manager.h
@@ -56,14 +56,15 @@ class UserScriptSetManager : public content::RenderProcessObserver {
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
- // Looks up the script injection associated with |script_id| and |extension|
- // in the context of the given |web_frame|, |tab_id|, and |url|.
+ // Looks up the script injection associated with |script_id| and
+ // |extension_id| 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);
+ const std::string& extension_id);
// Append all injections from |static_scripts| and each of
// |programmatic_scripts_| to |injections|.

Powered by Google App Engine
This is Rietveld 408576698