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

Unified Diff: extensions/renderer/native_handler.h

Issue 1074273002: Move the event attach/detach logic on unload from event.js to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: being process of relanding - more test assertions Created 5 years, 8 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 | « extensions/renderer/module_system_test.cc ('k') | extensions/renderer/native_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/native_handler.h
diff --git a/extensions/renderer/native_handler.h b/extensions/renderer/native_handler.h
index c0660c803bd7da71bc9536779c97851145cc8b10..1491feb84c3c703c710bce598dd31356a75d9741 100644
--- a/extensions/renderer/native_handler.h
+++ b/extensions/renderer/native_handler.h
@@ -29,6 +29,9 @@ class NativeHandler {
//
// Subclasses should override to invalidate their own V8 state. If they do
// they must call their superclass' Invalidate().
+ //
+ // Invalidate() will be called on destruction, if it hasn't already been.
+ // Subclasses don't need to do it themselves.
virtual void Invalidate();
protected:
« no previous file with comments | « extensions/renderer/module_system_test.cc ('k') | extensions/renderer/native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698