Index: mojo/public/cpp/bindings/pipe_control_message_proxy.h |
diff --git a/mojo/public/cpp/bindings/pipe_control_message_proxy.h b/mojo/public/cpp/bindings/pipe_control_message_proxy.h |
index 25ee203846915732478fea0ba43c0544979f34cc..f5da26b7493a2f23daec6b1b0ab22dc11a2e0128 100644 |
--- a/mojo/public/cpp/bindings/pipe_control_message_proxy.h |
+++ b/mojo/public/cpp/bindings/pipe_control_message_proxy.h |
@@ -15,9 +15,12 @@ namespace mojo { |
class MessageReceiver; |
// Proxy for request messages defined in pipe_control_messages.mojom. |
+// |
+// NOTE: This object may be used from multiple threads. |
class MOJO_CPP_BINDINGS_EXPORT PipeControlMessageProxy { |
public: |
- // Doesn't take ownership of |receiver|. It must outlive this object. |
+ // Doesn't take ownership of |receiver|. If This PipeControlMessageProxy will |
+ // be used from multiple threads, |receiver| must be thread-safe. |
explicit PipeControlMessageProxy(MessageReceiver* receiver); |
void NotifyPeerEndpointClosed(InterfaceId id); |
@@ -26,7 +29,6 @@ class MOJO_CPP_BINDINGS_EXPORT PipeControlMessageProxy { |
private: |
// Not owned. |
MessageReceiver* receiver_; |
- internal::SerializationContext context_; |
DISALLOW_COPY_AND_ASSIGN(PipeControlMessageProxy); |
}; |