| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 14 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
| 15 #include "net/spdy/spdy_framer.h" | 15 #include "net/spdy/spdy_framer.h" |
| 16 #include "net/spdy/spdy_header_block.h" |
| 16 #include "net/spdy/spdy_stream.h" | 17 #include "net/spdy/spdy_stream.h" |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 // The SpdyWebSocketStream is a WebSocket-specific type of stream known to a | 21 // The SpdyWebSocketStream is a WebSocket-specific type of stream known to a |
| 21 // SpdySession. WebSocket's opening handshake is converted to SPDY's | 22 // SpdySession. WebSocket's opening handshake is converted to SPDY's |
| 22 // SYN_STREAM/SYN_REPLY. WebSocket frames are encapsulated as SPDY data frames. | 23 // SYN_STREAM/SYN_REPLY. WebSocket frames are encapsulated as SPDY data frames. |
| 23 class NET_EXPORT_PRIVATE SpdyWebSocketStream | 24 class NET_EXPORT_PRIVATE SpdyWebSocketStream |
| 24 : public SpdyStream::Delegate { | 25 : public SpdyStream::Delegate { |
| 25 public: | 26 public: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 scoped_refptr<SpdyStream> stream_; | 94 scoped_refptr<SpdyStream> stream_; |
| 94 scoped_refptr<SpdySession> spdy_session_; | 95 scoped_refptr<SpdySession> spdy_session_; |
| 95 Delegate* delegate_; | 96 Delegate* delegate_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); | 98 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace net | 101 } // namespace net |
| 101 | 102 |
| 102 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 103 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
| OLD | NEW |