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_SIMPLE_SERVER_STREAM_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ |
6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ | 6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 const std::string& body() { return body_; } | 75 const std::string& body() { return body_; } |
76 | 76 |
77 private: | 77 private: |
78 friend class test::QuicSimpleServerStreamPeer; | 78 friend class test::QuicSimpleServerStreamPeer; |
79 | 79 |
80 // The parsed headers received from the client. | 80 // The parsed headers received from the client. |
81 SpdyHeaderBlock request_headers_; | 81 SpdyHeaderBlock request_headers_; |
82 int64_t content_length_; | 82 int64_t content_length_; |
83 std::string body_; | 83 std::string body_; |
| 84 // Whether or not SendResponse() has been called. |
| 85 bool response_started_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream); | 87 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream); |
86 }; | 88 }; |
87 | 89 |
88 } // namespace net | 90 } // namespace net |
89 | 91 |
90 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ | 92 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ |
OLD | NEW |