OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUIC_QUIC_SPDY_SERVER_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ |
6 #define NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ | 6 #define NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void SendResponse(); | 44 void SendResponse(); |
45 | 45 |
46 // Sends a basic 500 response using SendHeaders for the headers and WriteData | 46 // Sends a basic 500 response using SendHeaders for the headers and WriteData |
47 // for the body | 47 // for the body |
48 void SendErrorResponse(); | 48 void SendErrorResponse(); |
49 | 49 |
50 void SendHeadersAndBody(const HttpResponseHeaders& response_headers, | 50 void SendHeadersAndBody(const HttpResponseHeaders& response_headers, |
51 base::StringPiece body); | 51 base::StringPiece body); |
52 | 52 |
53 SpdyHeaderBlock headers_; | 53 SpdyHeaderBlock headers_; |
54 string body_; | 54 std::string body_; |
55 GURL request_url_; | 55 GURL request_url_; |
56 | 56 |
57 // Buffer into which response header data is read. | 57 // Buffer into which response header data is read. |
58 scoped_refptr<GrowableIOBuffer> read_buf_; | 58 scoped_refptr<GrowableIOBuffer> read_buf_; |
59 bool request_headers_received_; | 59 bool request_headers_received_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream); | 61 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace net | 64 } // namespace net |
65 | 65 |
66 #endif // NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ | 66 #endif // NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ |
OLD | NEW |