| 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 28 matching lines...) Expand all Loading... |
| 39 // Override the base class to parse and store trailers. | 39 // Override the base class to parse and store trailers. |
| 40 void OnTrailingHeadersComplete(bool fin, | 40 void OnTrailingHeadersComplete(bool fin, |
| 41 size_t frame_len, | 41 size_t frame_len, |
| 42 const QuicHeaderList& header_list) override; | 42 const QuicHeaderList& header_list) override; |
| 43 | 43 |
| 44 // Override the base class to handle creation of the push stream. | 44 // Override the base class to handle creation of the push stream. |
| 45 void OnPromiseHeaderList(QuicStreamId promised_id, | 45 void OnPromiseHeaderList(QuicStreamId promised_id, |
| 46 size_t frame_len, | 46 size_t frame_len, |
| 47 const QuicHeaderList& header_list) override; | 47 const QuicHeaderList& header_list) override; |
| 48 | 48 |
| 49 // ReliableQuicStream implementation called by the session when there's | 49 // QuicStream implementation called by the session when there's data for us. |
| 50 // data for us. | |
| 51 void OnDataAvailable() override; | 50 void OnDataAvailable() override; |
| 52 | 51 |
| 53 // Serializes the headers and body, sends it to the server, and | 52 // Serializes the headers and body, sends it to the server, and |
| 54 // returns the number of bytes sent. | 53 // returns the number of bytes sent. |
| 55 size_t SendRequest(SpdyHeaderBlock headers, base::StringPiece body, bool fin); | 54 size_t SendRequest(SpdyHeaderBlock headers, base::StringPiece body, bool fin); |
| 56 | 55 |
| 57 // Returns the response data. | 56 // Returns the response data. |
| 58 const std::string& data() { return data_; } | 57 const std::string& data() { return data_; } |
| 59 | 58 |
| 60 // Returns whatever headers have been received for this stream. | 59 // Returns whatever headers have been received for this stream. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 82 size_t header_bytes_written_; | 81 size_t header_bytes_written_; |
| 83 | 82 |
| 84 QuicClientSession* session_; | 83 QuicClientSession* session_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); | 85 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace net | 88 } // namespace net |
| 90 | 89 |
| 91 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 90 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
| OLD | NEW |