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

Side by Side Diff: net/tools/quic/quic_client.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/end_to_end_test.cc ('k') | net/tools/quic/quic_client.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 // A toy client, which connects to a specified port and sends QUIC 5 // A toy client, which connects to a specified port and sends QUIC
6 // request to that endpoint. 6 // request to that endpoint.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "net/base/ip_endpoint.h" 15 #include "net/base/ip_endpoint.h"
16 #include "net/quic/quic_framer.h" 16 #include "net/quic/quic_framer.h"
17 #include "net/quic/quic_packet_creator.h" 17 #include "net/quic/quic_packet_creator.h"
18 #include "net/tools/flip_server/epoll_server.h" 18 #include "net/tools/flip_server/epoll_server.h"
19 #include "net/tools/quic/quic_client_session.h" 19 #include "net/tools/quic/quic_client_session.h"
20 #include "net/tools/quic/quic_reliable_client_stream.h" 20 #include "net/tools/quic/quic_reliable_client_stream.h"
21 21
22 namespace net { 22 namespace net {
23 namespace tools {
23 24
24 class QuicClient : public EpollCallbackInterface { 25 class QuicClient : public EpollCallbackInterface {
25 public: 26 public:
26 QuicClient(IPEndPoint server_address, const std::string& server_hostname); 27 QuicClient(IPEndPoint server_address, const std::string& server_hostname);
27 virtual ~QuicClient(); 28 virtual ~QuicClient();
28 29
29 // Initializes the client to create a connection. Should be called exactly 30 // Initializes the client to create a connection. Should be called exactly
30 // once before calling StartConnect or Connect. Returns true if the 31 // once before calling StartConnect or Connect. Returns true if the
31 // initialization succeeds, false otherwise. 32 // initialization succeeds, false otherwise.
32 bool Initialize(); 33 bool Initialize();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // are dropped. 137 // are dropped.
137 int packets_dropped_; 138 int packets_dropped_;
138 139
139 // True if the kernel supports SO_RXQ_OVFL, the number of packets dropped 140 // True if the kernel supports SO_RXQ_OVFL, the number of packets dropped
140 // because the socket would otherwise overflow. 141 // because the socket would otherwise overflow.
141 bool overflow_supported_; 142 bool overflow_supported_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(QuicClient); 144 DISALLOW_COPY_AND_ASSIGN(QuicClient);
144 }; 145 };
145 146
147 } // namespace tools
146 } // namespace net 148 } // namespace net
147 149
148 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 150 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698