Index: net/websockets/websocket_stream.h |
diff --git a/net/websockets/websocket_stream.h b/net/websockets/websocket_stream.h |
index 09f11b22f1a5d3e36fa5b8e2ff0c6065240cce9c..46dc526219ea5ef63104e3f609197644ee7f48cf 100644 |
--- a/net/websockets/websocket_stream.h |
+++ b/net/websockets/websocket_stream.h |
@@ -10,8 +10,10 @@ |
#include "base/basictypes.h" |
#include "base/callback_forward.h" |
+#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/scoped_vector.h" |
+#include "base/time/time.h" |
#include "net/base/completion_callback.h" |
#include "net/base/net_export.h" |
#include "net/websockets/websocket_event_interface.h" |
@@ -198,6 +200,16 @@ class NET_EXPORT_PRIVATE WebSocketStream { |
DISALLOW_COPY_AND_ASSIGN(WebSocketStream); |
}; |
+// A helper function used in the implementation of CreateAndConnectStream() and |
+// WebSocketBasicHandshakeStream. It creates a WebSocketHandshakeResponseInfo |
+// object and dispatches it to the OnFinishOpeningHandshake() method of the |
+// supplied |connect_delegate|. |
+void WebSocketDispatchOnFinishOpeningHandshake( |
+ WebSocketStream::ConnectDelegate* connect_delegate, |
+ const GURL& gurl, |
+ const scoped_refptr<HttpResponseHeaders>& headers, |
+ base::Time response_time); |
+ |
} // namespace net |
#endif // NET_WEBSOCKETS_WEBSOCKET_STREAM_H_ |