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 cd720d1c4b88f2ebee3f05d44601233ce6688ec5..cf82ec746731ccc2c5fb3b534ac8fb5391328ffa 100644 |
--- a/content/public/browser/message_port_provider.h |
+++ b/content/public/browser/message_port_provider.h |
@@ -46,6 +46,7 @@ class CONTENT_EXPORT MessagePortProvider { |
int* port2); |
// Posts a MessageEvent to a message port associated with a message channel. |
+ // Should be called on IO thread. |
static void PostMessageToPort( |
int sender_port_id, |
const MessagePortMessage& message, |
@@ -63,8 +64,16 @@ class CONTENT_EXPORT MessagePortProvider { |
static void ReleaseMessages(int message_port_id); |
// Cleanup the message ports that belong to the closing delegate. |
+ // Should be called on IO thread. |
static void OnMessagePortDelegateClosing(MessagePortDelegate * delegate); |
+ // Update message port information when the message port is transferred |
+ // from a different process. The updated message ports will have their |
+ // routing numbers equal to the message port numbers. |
+ // Should be called on IO thread. |
+ static void UpdateMessagePort(int message_port_id, |
+ MessagePortDelegate* delegate); |
+ |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePortProvider); |
}; |