Index: extensions/browser/api/cast_channel/cast_socket.h |
diff --git a/extensions/browser/api/cast_channel/cast_socket.h b/extensions/browser/api/cast_channel/cast_socket.h |
index 08a69b4bf8108467bb7c727ebfd6382f12906ed8..78a7bb0d5d8fa791e98b352b45acaa448e180341 100644 |
--- a/extensions/browser/api/cast_channel/cast_socket.h |
+++ b/extensions/browser/api/cast_channel/cast_socket.h |
@@ -70,6 +70,9 @@ class CastSocket : public ApiResource { |
// Instead use Close(). |
// |callback| will be invoked with any ChannelError that occurred, or |
// CHANNEL_ERROR_NONE if successful. |
+ // If the CastSocket is destroyed while the connection is pending, |callback| |
+ // will be invoked with CHANNEL_ERROR_UNKNOWN. In this case, invoking |
+ // |callback| must not result in any re-entrancy behavior. |
// |delegate| receives message receipt and error events. |
// Ownership of |delegate| is transferred to this CastSocket. |
virtual void Connect(std::unique_ptr<CastTransport::Delegate> delegate, |