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

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

Issue 312553003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/quic/test_tools/quic_test_utils.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
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE; 109 virtual void OnEvent(int fd, EpollEvent* event) OVERRIDE;
110 // |fd_| can be unregistered without the client being disconnected. This 110 // |fd_| can be unregistered without the client being disconnected. This
111 // happens in b3m QuicProber where we unregister |fd_| to feed in events to 111 // happens in b3m QuicProber where we unregister |fd_| to feed in events to
112 // the client from the SelectServer. 112 // the client from the SelectServer.
113 virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {} 113 virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {}
114 virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {} 114 virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {}
115 115
116 // QuicDataStream::Visitor 116 // QuicDataStream::Visitor
117 virtual void OnClose(QuicDataStream* stream) OVERRIDE; 117 virtual void OnClose(QuicDataStream* stream) OVERRIDE;
118 118
119 QuicPacketCreator::Options* options();
120
121 QuicClientSession* session() { return session_.get(); } 119 QuicClientSession* session() { return session_.get(); }
122 120
123 bool connected() const; 121 bool connected() const;
124 122
125 void set_bind_to_address(IPAddressNumber address) { 123 void set_bind_to_address(IPAddressNumber address) {
126 bind_to_address_ = address; 124 bind_to_address_ = address;
127 } 125 }
128 126
129 IPAddressNumber bind_to_address() const { return bind_to_address_; } 127 IPAddressNumber bind_to_address() const { return bind_to_address_; }
130 128
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Size of initial flow control receive window to advertise to server. 248 // Size of initial flow control receive window to advertise to server.
251 uint32 initial_flow_control_window_; 249 uint32 initial_flow_control_window_;
252 250
253 DISALLOW_COPY_AND_ASSIGN(QuicClient); 251 DISALLOW_COPY_AND_ASSIGN(QuicClient);
254 }; 252 };
255 253
256 } // namespace tools 254 } // namespace tools
257 } // namespace net 255 } // namespace net
258 256
259 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 257 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698