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

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

Issue 13741012: Moving net/tools/quic code to net::tools namspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_socket_utils.cc ('k') | net/tools/quic/quic_spdy_client_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_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/string_piece.h" 8 #include "base/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"
11 11
12 namespace net { 12 namespace net {
13 13
14 class BalsaHeaders; 14 class BalsaHeaders;
15 15
16 namespace tools {
17
16 class QuicClientSession; 18 class QuicClientSession;
17 19
18 // All this does right now is send an SPDY request, and aggregate the 20 // All this does right now is send an SPDY request, and aggregate the
19 // SPDY response. 21 // SPDY response.
20 class QuicSpdyClientStream : public QuicReliableClientStream { 22 class QuicSpdyClientStream : public QuicReliableClientStream {
21 public: 23 public:
22 QuicSpdyClientStream(QuicStreamId id, QuicClientSession* session); 24 QuicSpdyClientStream(QuicStreamId id, QuicClientSession* session);
23 virtual ~QuicSpdyClientStream(); 25 virtual ~QuicSpdyClientStream();
24 26
25 // ReliableQuicStream implementation called by the session when there's 27 // ReliableQuicStream implementation called by the session when there's
26 // data for us. 28 // data for us.
27 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 29 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
28 30
29 virtual ssize_t SendRequest(const BalsaHeaders& headers, 31 virtual ssize_t SendRequest(const BalsaHeaders& headers,
30 base::StringPiece body, 32 base::StringPiece body,
31 bool fin) OVERRIDE; 33 bool fin) OVERRIDE;
32 34
33 private: 35 private:
34 int ParseResponseHeaders(); 36 int ParseResponseHeaders();
35 37
36 scoped_refptr<GrowableIOBuffer> read_buf_; 38 scoped_refptr<GrowableIOBuffer> read_buf_;
37 bool response_headers_received_; 39 bool response_headers_received_;
38 }; 40 };
39 41
42 } // namespace tools
40 } // namespace net 43 } // namespace net
41 44
42 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_ 45 #endif // NET_TOOLS_QUIC_QUIC_SPDY_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_socket_utils.cc ('k') | net/tools/quic/quic_spdy_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698