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 aab9269366a05f47fa0df911b63f47525ac980bd..11d25984c0c988c98630a2fca8c2e564f4064e76 100644 |
--- a/content/public/browser/message_port_provider.h |
+++ b/content/public/browser/message_port_provider.h |
@@ -14,6 +14,7 @@ |
namespace content { |
+class MessagePortDelegate; |
class WebContents; |
// An interface consisting of methods that can be called to use Message ports. |
@@ -35,10 +36,15 @@ class CONTENT_EXPORT MessagePortProvider { |
// associated with this message channel. |
// See https://html.spec.whatwg.org/multipage/comms.html#messagechannel |
// Should be called on IO thread. |
- static void CreateMessageChannel(WebContents* web_contents, |
+ // The message ports that are created will have their routing id numbers equal |
+ // to the message port numbers. |
+ static void CreateMessageChannel(MessagePortDelegate* delegate, |
int* port1, |
int* port2); |
+ // Cleanup the message ports that belong to the closing delegate. |
+ static void OnMessagePortDelegateClosing(MessagePortDelegate * delegate); |
+ |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePortProvider); |
}; |