Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: net/websockets/websocket_stream.h

Issue 336263005: Map WebSocket URL schemes to HTTP URL schemes for auth purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace accidentally removed #include <string> Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698