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

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

Issue 23597045: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged QuicPriority to RequestPriority changes Created 7 years, 3 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 | Annotate | Revision Log
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 "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/tools/quic/quic_reliable_client_stream.h" 10 #include "net/tools/quic/quic_reliable_client_stream.h"
(...skipping 16 matching lines...) Expand all
27 // ReliableQuicStream implementation called by the session when there's 27 // ReliableQuicStream implementation called by the session when there's
28 // data for us. 28 // data for us.
29 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 29 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
30 30
31 virtual void TerminateFromPeer(bool half_close) OVERRIDE; 31 virtual void TerminateFromPeer(bool half_close) OVERRIDE;
32 32
33 virtual ssize_t SendRequest(const BalsaHeaders& headers, 33 virtual ssize_t SendRequest(const BalsaHeaders& headers,
34 base::StringPiece body, 34 base::StringPiece body,
35 bool fin) OVERRIDE; 35 bool fin) OVERRIDE;
36 36
37 // While the server's set_priority shouldn't be called externally, the creator
38 // of client-side streams should be able to set the priority.
39 using QuicReliableClientStream::set_priority;
40
37 private: 41 private:
38 int ParseResponseHeaders(); 42 int ParseResponseHeaders();
39 43
40 scoped_refptr<GrowableIOBuffer> read_buf_; 44 scoped_refptr<GrowableIOBuffer> read_buf_;
41 bool response_headers_received_; 45 bool response_headers_received_;
42 }; 46 };
43 47
44 } // namespace tools 48 } // namespace tools
45 } // namespace net 49 } // namespace net
46 50
47 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ 51 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_reliable_server_stream_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698