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

Side by Side Diff: net/tools/quic/quic_reliable_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_packet_writer.h ('k') | net/tools/quic/quic_reliable_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_RELIABLE_CLIENT_STREAM_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 6 #define NET_TOOLS_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 #include "net/quic/quic_protocol.h" 12 #include "net/quic/quic_protocol.h"
13 #include "net/quic/reliable_quic_stream.h" 13 #include "net/quic/reliable_quic_stream.h"
14 #include "net/tools/flip_server/balsa_frame.h" 14 #include "net/tools/flip_server/balsa_frame.h"
15 #include "net/tools/flip_server/balsa_headers.h" 15 #include "net/tools/flip_server/balsa_headers.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 class QuicSession;
20
21 namespace tools {
22
19 class QuicClientSession; 23 class QuicClientSession;
20 class QuicSession;
21 24
22 // A base class for spdy/http client streams which handles the concept 25 // A base class for spdy/http client streams which handles the concept
23 // of sending and receiving headers and bodies. 26 // of sending and receiving headers and bodies.
24 class QuicReliableClientStream : public ReliableQuicStream { 27 class QuicReliableClientStream : public ReliableQuicStream {
25 public: 28 public:
26 QuicReliableClientStream(QuicStreamId id, QuicSession* session) 29 QuicReliableClientStream(QuicStreamId id, QuicSession* session)
27 : ReliableQuicStream(id, session) { 30 : ReliableQuicStream(id, session) {
28 } 31 }
29 32
30 // Serializes the headers and body, sends it to the server, and 33 // Serializes the headers and body, sends it to the server, and
(...skipping 22 matching lines...) Expand all
53 BalsaHeaders* mutable_headers() { return &headers_; } 56 BalsaHeaders* mutable_headers() { return &headers_; }
54 57
55 private: 58 private:
56 BalsaHeaders headers_; 59 BalsaHeaders headers_;
57 std::string data_; 60 std::string data_;
58 bool closed_; 61 bool closed_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream); 63 DISALLOW_COPY_AND_ASSIGN(QuicReliableClientStream);
61 }; 64 };
62 65
66 } // namespace tools
63 } // namespace net 67 } // namespace net
64 68
65 #endif // NET_TOOLS_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ 69 #endif // NET_TOOLS_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_writer.h ('k') | net/tools/quic/quic_reliable_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698