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

Unified Diff: net/websockets/websocket_stream.h

Issue 14813024: Introduce RequestWebSocketStream into HttpStreamFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/websockets/websocket_stream_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_stream.h
diff --git a/net/websockets/websocket_stream.h b/net/websockets/websocket_stream.h
index c69aa85a33c4f112a1dd20a0438c2f12c6230a0b..10631f4f566a5a0119cf178073b75199363f6c20 100644
--- a/net/websockets/websocket_stream.h
+++ b/net/websockets/websocket_stream.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_vector.h"
#include "net/base/completion_callback.h"
+#include "net/websockets/websocket_stream_base.h"
namespace net {
@@ -30,7 +31,7 @@ struct WebSocketFrameChunk;
// |callback| will be called when the operation is finished. Non-null |callback|
// must be provided to these functions.
-class WebSocketStream {
+class WebSocketStream : public WebSocketStreamBase {
public:
WebSocketStream() {}
@@ -95,6 +96,9 @@ class WebSocketStream {
// - RenewStreamForAuth for authentication (is this necessary?)
// - GetSSLInfo, GetSSLCertRequsetInfo for SSL
+ // WebSocketStreamBase derived functions
+ virtual WebSocketStream* AsWebSocketStream() { return this; }
+
private:
DISALLOW_COPY_AND_ASSIGN(WebSocketStream);
};
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/websockets/websocket_stream_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698