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

Unified Diff: chrome/renderer/extensions/chrome_v8_context_set.h

Issue 11882035: Stop sending events and messages to content script contexts after their (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: chrome/renderer/extensions/chrome_v8_context_set.h
diff --git a/chrome/renderer/extensions/chrome_v8_context_set.h b/chrome/renderer/extensions/chrome_v8_context_set.h
index 7454e82919f1edb1a5c8a8beb4555756cbe62b29..44d37797836037c8d4de1539ed7f7b69ef443345 100644
--- a/chrome/renderer/extensions/chrome_v8_context_set.h
+++ b/chrome/renderer/extensions/chrome_v8_context_set.h
@@ -69,6 +69,9 @@ class ChromeV8ContextSet {
content::RenderView* render_view,
const GURL& event_url) const;
+ // Cleans up contexts belonging to an unloaded extension.
+ void OnExtensionUnloaded(const std::string& extension_id);
+
private:
ContextSet contexts_;
« no previous file with comments | « chrome/browser/extensions/user_script_master.cc ('k') | chrome/renderer/extensions/chrome_v8_context_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698