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

Unified Diff: content/public/browser/message_port_provider.h

Issue 956763002: Implement the close() API for Message ports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Nasko review 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
« no previous file with comments | « content/browser/message_port_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/message_port_provider.h
diff --git a/content/public/browser/message_port_provider.h b/content/public/browser/message_port_provider.h
index 1042399fdb4311c4d375458e4b65c34ebf265290..8a725de00b59e8ded8c0248fe5da45cdb75912f8 100644
--- a/content/public/browser/message_port_provider.h
+++ b/content/public/browser/message_port_provider.h
@@ -47,6 +47,9 @@ class CONTENT_EXPORT MessagePortProvider {
const base::string16& data,
const std::vector<int>& sent_ports);
+ // Close the message port. Should be called on IO thread.
+ static void ClosePort(int message_port_id);
+
// Cleanup the message ports that belong to the closing delegate.
static void OnMessagePortDelegateClosing(MessagePortDelegate * delegate);
« no previous file with comments | « content/browser/message_port_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698