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

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

Issue 1910593004: Plumbs new SpdyFramerVisitorInterface method handling through QUIC test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119562680
Patch Set: Rebase Created 4 years, 8 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
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 13 matching lines...) Expand all
24 // All this does right now is aggregate data, and on fin, send an HTTP 24 // All this does right now is aggregate data, and on fin, send an HTTP
25 // response. 25 // response.
26 class QuicSimpleServerStream : public QuicSpdyStream { 26 class QuicSimpleServerStream : public QuicSpdyStream {
27 public: 27 public:
28 QuicSimpleServerStream(QuicStreamId id, QuicSpdySession* session); 28 QuicSimpleServerStream(QuicStreamId id, QuicSpdySession* session);
29 ~QuicSimpleServerStream() override; 29 ~QuicSimpleServerStream() override;
30 30
31 // QuicSpdyStream 31 // QuicSpdyStream
32 void OnInitialHeadersComplete(bool fin, size_t frame_len) override; 32 void OnInitialHeadersComplete(bool fin, size_t frame_len) override;
33 void OnTrailingHeadersComplete(bool fin, size_t frame_len) override; 33 void OnTrailingHeadersComplete(bool fin, size_t frame_len) override;
34 void OnInitialHeadersComplete(bool fin,
35 size_t frame_len,
36 const QuicHeaderList& header_list) override;
37 void OnTrailingHeadersComplete(bool fin,
38 size_t frame_len,
39 const QuicHeaderList& header_list) override;
34 40
35 // ReliableQuicStream implementation called by the sequencer when there is 41 // ReliableQuicStream implementation called by the sequencer when there is
36 // data (or a FIN) to be read. 42 // data (or a FIN) to be read.
37 void OnDataAvailable() override; 43 void OnDataAvailable() override;
38 44
39 // Make this stream start from as if it just finished parsing an incoming 45 // Make this stream start from as if it just finished parsing an incoming
40 // request whose headers are equivalent to |push_request_headers|. 46 // request whose headers are equivalent to |push_request_headers|.
41 // Doing so will trigger this toy stream to fetch response and send it back. 47 // Doing so will trigger this toy stream to fetch response and send it back.
42 virtual void PushResponse(SpdyHeaderBlock push_request_headers); 48 virtual void PushResponse(SpdyHeaderBlock push_request_headers);
43 49
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 SpdyHeaderBlock request_headers_; 81 SpdyHeaderBlock request_headers_;
76 int64_t content_length_; 82 int64_t content_length_;
77 std::string body_; 83 std::string body_;
78 84
79 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream); 85 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream);
80 }; 86 };
81 87
82 } // namespace net 88 } // namespace net
83 89
84 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ 90 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698