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

Unified Diff: extensions/renderer/user_script_injector.h

Issue 2278003002: Stop copying script contents for each RenderFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from Devlin Created 4 years, 3 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 | « no previous file | extensions/renderer/user_script_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_injector.h
diff --git a/extensions/renderer/user_script_injector.h b/extensions/renderer/user_script_injector.h
index 91716559c3a7f27ba44b1afda3f7abf114fd2691..cb89271d91fa5b06e81588b9b9907551bb1461d6 100644
--- a/extensions/renderer/user_script_injector.h
+++ b/extensions/renderer/user_script_injector.h
@@ -63,6 +63,11 @@ class UserScriptInjector : public ScriptInjector,
// this object.
const UserScript* script_;
+ // The UserScriptSet that eventually owns the UserScript this
+ // UserScriptInjector points to.
+ // Outlives |this|.
+ UserScriptSet* const user_script_set_;
+
// The id of the associated user script. We cache this because when we update
// the |script_| associated with this injection, the old referance may be
// deleted.
« no previous file with comments | « no previous file | extensions/renderer/user_script_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698