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

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

Issue 1036643003: Change the QuicInMemoryCache to store a SpdyHeaderBlock instead of BalsaHeaders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/tools/quic/quic_in_memory_cache_test.cc ('k') | net/tools/quic/quic_spdy_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_SPDY_SERVER_STREAM_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 6 #define NET_TOOLS_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"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "net/quic/quic_data_stream.h" 12 #include "net/quic/quic_data_stream.h"
13 #include "net/quic/quic_protocol.h" 13 #include "net/quic/quic_protocol.h"
14 #include "net/spdy/spdy_framer.h"
14 #include "net/tools/balsa/balsa_headers.h" 15 #include "net/tools/balsa/balsa_headers.h"
15 16
16 namespace net { 17 namespace net {
17 18
18 class QuicSession; 19 class QuicSession;
19 20
20 namespace tools { 21 namespace tools {
21 22
22 namespace test { 23 namespace test {
23 class QuicSpdyServerStreamPeer; 24 class QuicSpdyServerStreamPeer;
(...skipping 17 matching lines...) Expand all
41 friend class test::QuicSpdyServerStreamPeer; 42 friend class test::QuicSpdyServerStreamPeer;
42 43
43 // Sends a basic 200 response using SendHeaders for the headers and WriteData 44 // Sends a basic 200 response using SendHeaders for the headers and WriteData
44 // for the body. 45 // for the body.
45 void SendResponse(); 46 void SendResponse();
46 47
47 // Sends a basic 500 response using SendHeaders for the headers and WriteData 48 // Sends a basic 500 response using SendHeaders for the headers and WriteData
48 // for the body 49 // for the body
49 void SendErrorResponse(); 50 void SendErrorResponse();
50 51
51 void SendHeadersAndBody(const BalsaHeaders& response_headers, 52
ramant (doing other things) 2015/03/24 21:30:11 nit: extra blank line
Ryan Hamilton 2015/03/24 22:02:38 Done. (In final CL)
53 void SendHeadersAndBody(const SpdyHeaderBlock& response_headers,
52 base::StringPiece body); 54 base::StringPiece body);
53 55
54 BalsaHeaders headers_; 56 BalsaHeaders headers_;
55 std::string body_; 57 std::string body_;
56 58
57 // Buffer into which response header data is read. 59 // Buffer into which response header data is read.
58 scoped_refptr<GrowableIOBuffer> read_buf_; 60 scoped_refptr<GrowableIOBuffer> read_buf_;
59 bool request_headers_received_; 61 bool request_headers_received_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream); 63 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream);
62 }; 64 };
63 65
64 } // namespace tools 66 } // namespace tools
65 } // namespace net 67 } // namespace net
66 68
67 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 69 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_in_memory_cache_test.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698