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

Unified Diff: extensions/renderer/api_bindings_system.h

Issue 2722463006: [Extensions Bindings] Notify of event unregistration on invalidation (Closed)
Patch Set: Rebase Created 3 years, 9 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/api_bindings_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_bindings_system.h
diff --git a/extensions/renderer/api_bindings_system.h b/extensions/renderer/api_bindings_system.h
index 2af86014169189f480f4f825583670f7714bf34d..157fa76a783897b74c0391fc733d8dddc0bca8b1 100644
--- a/extensions/renderer/api_bindings_system.h
+++ b/extensions/renderer/api_bindings_system.h
@@ -84,6 +84,9 @@ class APIBindingsSystem {
void RegisterCustomType(const std::string& type_name,
const CustomTypeHandler& function);
+ // Handles any cleanup necessary before releasing the given |context|.
+ void WillReleaseContext(v8::Local<v8::Context> context);
+
APIRequestHandler* request_handler() { return &request_handler_; }
APIEventHandler* event_handler() { return &event_handler_; }
APITypeReferenceMap* type_reference_map() { return &type_reference_map_; }
« no previous file with comments | « no previous file | extensions/renderer/api_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698