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

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

Issue 1750303003: Remove unnecessary ReadPacket method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115244730
Patch Set: revert to Patch Set 1 Created 4 years, 9 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
« no previous file with comments | « no previous file | 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const QuicEncryptedPacket& packet) override; 190 const QuicEncryptedPacket& packet) override;
191 191
192 QuicClientPushPromiseIndex* push_promise_index() { 192 QuicClientPushPromiseIndex* push_promise_index() {
193 return &push_promise_index_; 193 return &push_promise_index_;
194 } 194 }
195 195
196 protected: 196 protected:
197 virtual QuicPacketWriter* CreateQuicPacketWriter(); 197 virtual QuicPacketWriter* CreateQuicPacketWriter();
198 virtual QuicPacketReader* CreateQuicPacketReader(); 198 virtual QuicPacketReader* CreateQuicPacketReader();
199 199
200 virtual int ReadPacket(char* buffer,
201 int buffer_len,
202 IPEndPoint* server_address,
203 IPAddress* client_ip);
204
205 // If |fd| is an open UDP socket, unregister and close it. Otherwise, do 200 // If |fd| is an open UDP socket, unregister and close it. Otherwise, do
206 // nothing. 201 // nothing.
207 virtual void CleanUpUDPSocket(int fd); 202 virtual void CleanUpUDPSocket(int fd);
208 203
209 // Unregister and close all open UDP sockets. 204 // Unregister and close all open UDP sockets.
210 virtual void CleanUpAllUDPSockets(); 205 virtual void CleanUpAllUDPSockets();
211 206
212 EpollServer* epoll_server() { return epoll_server_; } 207 EpollServer* epoll_server() { return epoll_server_; }
213 208
214 const linked_hash_map<int, IPEndPoint>& fd_address_map() const { 209 const linked_hash_map<int, IPEndPoint>& fd_address_map() const {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 QuicPacketReader* packet_reader_; 317 QuicPacketReader* packet_reader_;
323 318
324 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_; 319 std::unique_ptr<ClientQuicDataToResend> push_promise_data_to_resend_;
325 320
326 DISALLOW_COPY_AND_ASSIGN(QuicClient); 321 DISALLOW_COPY_AND_ASSIGN(QuicClient);
327 }; 322 };
328 323
329 } // namespace net 324 } // namespace net
330 325
331 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 326 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698