Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: net/tools/quic/quic_simple_server_stream.h

Issue 2421173003: Allowing the SimpleQuicBackend to send an early response. Test-only change. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/reliable_quic_stream.h ('k') | net/tools/quic/quic_simple_server_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/reliable_quic_stream.h ('k') | net/tools/quic/quic_simple_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698