| 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 "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 10 #include "net/tools/quic/quic_reliable_client_stream.h" | 10 #include "net/tools/quic/quic_reliable_client_stream.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // ReliableQuicStream implementation called by the session when there's | 27 // ReliableQuicStream implementation called by the session when there's |
| 28 // data for us. | 28 // data for us. |
| 29 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; | 29 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; |
| 30 | 30 |
| 31 virtual void TerminateFromPeer(bool half_close) OVERRIDE; | 31 virtual void TerminateFromPeer(bool half_close) OVERRIDE; |
| 32 | 32 |
| 33 virtual ssize_t SendRequest(const BalsaHeaders& headers, | 33 virtual ssize_t SendRequest(const BalsaHeaders& headers, |
| 34 base::StringPiece body, | 34 base::StringPiece body, |
| 35 bool fin) OVERRIDE; | 35 bool fin) OVERRIDE; |
| 36 | 36 |
| 37 // While the server's set_priority shouldn't be called externally, the creator |
| 38 // of client-side streams should be able to set the priority. |
| 39 using QuicReliableClientStream::set_priority; |
| 40 |
| 37 private: | 41 private: |
| 38 int ParseResponseHeaders(); | 42 int ParseResponseHeaders(); |
| 39 | 43 |
| 40 scoped_refptr<GrowableIOBuffer> read_buf_; | 44 scoped_refptr<GrowableIOBuffer> read_buf_; |
| 41 bool response_headers_received_; | 45 bool response_headers_received_; |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace tools | 48 } // namespace tools |
| 45 } // namespace net | 49 } // namespace net |
| 46 | 50 |
| 47 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ | 51 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ |
| OLD | NEW |