| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Returns the response data. | 57 // Returns the response data. |
| 58 const std::string& data() { return data_; } | 58 const std::string& data() { return data_; } |
| 59 | 59 |
| 60 // Returns whatever headers have been received for this stream. | 60 // Returns whatever headers have been received for this stream. |
| 61 const SpdyHeaderBlock& response_headers() { return response_headers_; } | 61 const SpdyHeaderBlock& response_headers() { return response_headers_; } |
| 62 | 62 |
| 63 size_t header_bytes_read() const { return header_bytes_read_; } | 63 size_t header_bytes_read() const { return header_bytes_read_; } |
| 64 | 64 |
| 65 size_t header_bytes_written() const { return header_bytes_written_; } | 65 size_t header_bytes_written() const { return header_bytes_written_; } |
| 66 | 66 |
| 67 size_t trailer_bytes_read() const { return header_bytes_read_; } | |
| 68 | |
| 69 int response_code() const { return response_code_; } | 67 int response_code() const { return response_code_; } |
| 70 | 68 |
| 71 // While the server's SetPriority shouldn't be called externally, the creator | 69 // While the server's SetPriority shouldn't be called externally, the creator |
| 72 // of client-side streams should be able to set the priority. | 70 // of client-side streams should be able to set the priority. |
| 73 using QuicSpdyStream::SetPriority; | 71 using QuicSpdyStream::SetPriority; |
| 74 | 72 |
| 75 private: | 73 private: |
| 76 // The parsed headers received from the server. | 74 // The parsed headers received from the server. |
| 77 SpdyHeaderBlock response_headers_; | 75 SpdyHeaderBlock response_headers_; |
| 78 | 76 |
| 79 // The parsed content-length, or -1 if none is specified. | 77 // The parsed content-length, or -1 if none is specified. |
| 80 int64_t content_length_; | 78 int64_t content_length_; |
| 81 int response_code_; | 79 int response_code_; |
| 82 std::string data_; | 80 std::string data_; |
| 83 size_t header_bytes_read_; | 81 size_t header_bytes_read_; |
| 84 size_t header_bytes_written_; | 82 size_t header_bytes_written_; |
| 85 | 83 |
| 86 QuicClientSession* session_; | 84 QuicClientSession* session_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); | 86 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace net | 89 } // namespace net |
| 92 | 90 |
| 93 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 91 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
| OLD | NEW |