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

Unified Diff: extensions/renderer/script_injection_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: Rebase. 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/script_injection_manager.h
diff --git a/extensions/renderer/script_injection_manager.h b/extensions/renderer/script_injection_manager.h
index 8ec3d94ed142896f08fbe6f4f3d8c33f05f5e08b..08cf1e13189e9c4def928112bf107dd844d577a8 100644
--- a/extensions/renderer/script_injection_manager.h
+++ b/extensions/renderer/script_injection_manager.h
@@ -45,6 +45,9 @@ class ScriptInjectionManager : public UserScriptSetManager::Observer {
// Notifies that a new render view has been created.
void OnRenderViewCreated(content::RenderView* render_view);
+ // Removes pending injections of the unloaded extension.
+ void OnExtensionUnloaded(const std::string& extension_id);
+
private:
// A RenderViewObserver implementation which watches the various render views
// in order to notify the ScriptInjectionManager of different document load

Powered by Google App Engine
This is Rietveld 408576698