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

Unified Diff: extensions/renderer/script_injection_manager.h

Issue 1216453002: [Extensions] Handle some funny cases in script injection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/script_injection_manager.h
diff --git a/extensions/renderer/script_injection_manager.h b/extensions/renderer/script_injection_manager.h
index a0416b389e133755afcfbab794066ed423866a33..88f552071f323b15bf13e579457d5faf9b79d394 100644
--- a/extensions/renderer/script_injection_manager.h
+++ b/extensions/renderer/script_injection_manager.h
@@ -99,6 +99,9 @@ class ScriptInjectionManager : public UserScriptSetManager::Observer {
// RunLocation of the frame corresponds to the last location that has ran.
FrameStatusMap frame_statuses_;
+ // The frames currently being injected into, so long as that frame is valid.
+ std::set<content::RenderFrame*> active_injection_frames_;
+
// The collection of RFOHelpers.
ScopedVector<RFOHelper> rfo_helpers_;
« no previous file with comments | « extensions/renderer/programmatic_script_injector.cc ('k') | extensions/renderer/script_injection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698