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

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

Issue 420313005: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0723
Patch Set: change QUIC packet size to 1350 Created 6 years, 4 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_SPDY_CLIENT_STREAM_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ 6 #define NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 // All this does right now is send an SPDY request, and aggregate the 25 // All this does right now is send an SPDY request, and aggregate the
26 // SPDY response. 26 // SPDY response.
27 class QuicSpdyClientStream : public QuicDataStream { 27 class QuicSpdyClientStream : public QuicDataStream {
28 public: 28 public:
29 QuicSpdyClientStream(QuicStreamId id, QuicClientSession* session); 29 QuicSpdyClientStream(QuicStreamId id, QuicClientSession* session);
30 virtual ~QuicSpdyClientStream(); 30 virtual ~QuicSpdyClientStream();
31 31
32 // Override the base class to close the write side as soon as we get a 32 // Override the base class to close the write side as soon as we get a
33 // response. 33 // response.
34 // SPDY/HTTP does not support bidirectional streaming. 34 // SPDY/HTTP does not support bidirectional streaming.
35 virtual bool OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE; 35 virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE;
36 36
37 // Override the base class to store the size of the headers. 37 // Override the base class to store the size of the headers.
38 virtual void OnStreamHeadersComplete(bool fin, size_t frame_len) OVERRIDE; 38 virtual void OnStreamHeadersComplete(bool fin, size_t frame_len) OVERRIDE;
39 39
40 // ReliableQuicStream implementation called by the session when there's 40 // ReliableQuicStream implementation called by the session when there's
41 // data for us. 41 // data for us.
42 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 42 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
43 43
44 virtual void OnFinRead() OVERRIDE; 44 virtual void OnFinRead() OVERRIDE;
45 45
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 size_t header_bytes_read_; 77 size_t header_bytes_read_;
78 size_t header_bytes_written_; 78 size_t header_bytes_written_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream); 80 DISALLOW_COPY_AND_ASSIGN(QuicSpdyClientStream);
81 }; 81 };
82 82
83 } // namespace tools 83 } // namespace tools
84 } // namespace net 84 } // namespace net
85 85
86 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ 86 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698