Index: net/websockets/websocket_event_interface.h |
diff --git a/net/websockets/websocket_event_interface.h b/net/websockets/websocket_event_interface.h |
index 25e12a057e9e9a55682021457c203207cb7e4317..970e344372094ba2dbcc00891100c77c10654410 100644 |
--- a/net/websockets/websocket_event_interface.h |
+++ b/net/websockets/websocket_event_interface.h |
@@ -75,8 +75,9 @@ class NET_EXPORT WebSocketEventInterface { |
// The channel should not be used again after OnDropChannel() has been |
// called. |
// |
- // This method returns a ChannelState for consistency, but all implementations |
- // must delete the Channel and return CHANNEL_DELETED. |
+ // Implementations that delete the channel synchronously should return |
+ // CHANNEL_DELETED. It is valid to return CHANNEL_ALIVE and delete the |
+ // channel after a delay, provided no further calls are made on the channel. |
virtual ChannelState OnDropChannel(bool was_clean, |
uint16_t code, |
const std::string& reason) |