| 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 <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // of client-side streams should be able to set the priority. | 67 // of client-side streams should be able to set the priority. |
| 68 using QuicSpdyStream::set_priority; | 68 using QuicSpdyStream::set_priority; |
| 69 | 69 |
| 70 void set_allow_bidirectional_data(bool value) { | 70 void set_allow_bidirectional_data(bool value) { |
| 71 allow_bidirectional_data_ = value; | 71 allow_bidirectional_data_ = value; |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool allow_bidirectional_data() const { return allow_bidirectional_data_; } | 74 bool allow_bidirectional_data() const { return allow_bidirectional_data_; } |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 bool ParseResponseHeaders(const char* data, uint32 data_len); | |
| 78 | |
| 79 // The parsed headers received from the server. | 77 // The parsed headers received from the server. |
| 80 SpdyHeaderBlock response_headers_; | 78 SpdyHeaderBlock response_headers_; |
| 81 // The parsed content-length, or -1 if none is specified. | 79 // The parsed content-length, or -1 if none is specified. |
| 82 int content_length_; | 80 int content_length_; |
| 83 int response_code_; | 81 int response_code_; |
| 84 std::string data_; | 82 std::string data_; |
| 85 size_t header_bytes_read_; | 83 size_t header_bytes_read_; |
| 86 size_t header_bytes_written_; | 84 size_t header_bytes_written_; |
| 87 // When true allows the sending of a request to continue while the response is | 85 // When true allows the sending of a request to continue while the response is |
| 88 // arriving. | 86 // arriving. |
| 89 bool allow_bidirectional_data_; | 87 bool allow_bidirectional_data_; |
| 90 | 88 |
| 91 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); | 89 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace tools | 92 } // namespace tools |
| 95 } // namespace net | 93 } // namespace net |
| 96 | 94 |
| 97 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 95 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
| OLD | NEW |