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_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
6 #define NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 6 #define NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 ~QuicSpdyClientStream() override; | 27 ~QuicSpdyClientStream() override; |
28 | 28 |
29 // Override the base class to close the write side as soon as we get a | 29 // Override the base class to close the write side as soon as we get a |
30 // response. | 30 // response. |
31 // SPDY/HTTP does not support bidirectional streaming. | 31 // SPDY/HTTP does not support bidirectional streaming. |
32 void OnStreamFrame(const QuicStreamFrame& frame) override; | 32 void OnStreamFrame(const QuicStreamFrame& frame) override; |
33 | 33 |
34 // Override the base class to parse and store headers. | 34 // Override the base class to parse and store headers. |
35 void OnInitialHeadersComplete(bool fin, size_t frame_len) override; | 35 void OnInitialHeadersComplete(bool fin, size_t frame_len) override; |
36 | 36 |
| 37 // Override the base class to parse and store headers. |
| 38 void OnInitialHeadersComplete(bool fin, |
| 39 size_t frame_len, |
| 40 const QuicHeaderList& header_list) override; |
| 41 |
37 // Override the base class to parse and store trailers. | 42 // Override the base class to parse and store trailers. |
38 void OnTrailingHeadersComplete(bool fin, size_t frame_len) override; | 43 void OnTrailingHeadersComplete(bool fin, size_t frame_len) override; |
39 | 44 |
40 // Override the base class to handle creation of the push stream. | 45 // Override the base class to handle creation of the push stream. |
41 void OnPromiseHeadersComplete(QuicStreamId promised_stream_id, | 46 void OnPromiseHeadersComplete(QuicStreamId promised_stream_id, |
42 size_t frame_len) override; | 47 size_t frame_len) override; |
43 | 48 |
| 49 // Override the base class to handle creation of the push stream. |
| 50 void OnPromiseHeaderList(QuicStreamId promised_id, |
| 51 size_t frame_len, |
| 52 const QuicHeaderList& header_list) override; |
| 53 |
44 // ReliableQuicStream implementation called by the session when there's | 54 // ReliableQuicStream implementation called by the session when there's |
45 // data for us. | 55 // data for us. |
46 void OnDataAvailable() override; | 56 void OnDataAvailable() override; |
47 | 57 |
48 // Serializes the headers and body, sends it to the server, and | 58 // Serializes the headers and body, sends it to the server, and |
49 // returns the number of bytes sent. | 59 // returns the number of bytes sent. |
50 size_t SendRequest(const SpdyHeaderBlock& headers, | 60 size_t SendRequest(const SpdyHeaderBlock& headers, |
51 base::StringPiece body, | 61 base::StringPiece body, |
52 bool fin); | 62 bool fin); |
53 | 63 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool allow_bidirectional_data_; | 100 bool allow_bidirectional_data_; |
91 | 101 |
92 QuicClientSession* session_; | 102 QuicClientSession* session_; |
93 | 103 |
94 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); | 104 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); |
95 }; | 105 }; |
96 | 106 |
97 } // namespace net | 107 } // namespace net |
98 | 108 |
99 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 109 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
OLD | NEW |