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

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

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Naming fixes. Created 5 years 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
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_SIMPLE_CLIENT_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ 9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Sends a request simple GET for each URL in |args|, and then waits for 121 // Sends a request simple GET for each URL in |args|, and then waits for
122 // each to complete. 122 // each to complete.
123 void SendRequestsAndWaitForResponse( 123 void SendRequestsAndWaitForResponse(
124 const base::CommandLine::StringVector& url_list); 124 const base::CommandLine::StringVector& url_list);
125 125
126 // Migrate to a new socket during an active connection. 126 // Migrate to a new socket during an active connection.
127 bool MigrateSocket(const IPAddressNumber& new_host); 127 bool MigrateSocket(const IPAddressNumber& new_host);
128 128
129 // QuicPacketReader::Visitor 129 // QuicPacketReader::Visitor
130 void OnReadError(int result) override; 130 void OnReadError(int result, const DatagramClientSocket* socket) override;
131 bool OnPacket(const QuicEncryptedPacket& packet, 131 bool OnPacket(const QuicEncryptedPacket& packet,
132 IPEndPoint local_address, 132 IPEndPoint local_address,
133 IPEndPoint peer_address) override; 133 IPEndPoint peer_address) override;
134 134
135 // QuicSpdyStream::Visitor 135 // QuicSpdyStream::Visitor
136 void OnClose(QuicSpdyStream* stream) override; 136 void OnClose(QuicSpdyStream* stream) override;
137 137
138 // If the crypto handshake has not yet been confirmed, adds the data to the 138 // If the crypto handshake has not yet been confirmed, adds the data to the
139 // queue of data to resend if the client receives a stateless reject. 139 // queue of data to resend if the client receives a stateless reject.
140 // Otherwise, deletes the data. Takes ownerership of |data_to_resend|. 140 // Otherwise, deletes the data. Takes ownerership of |data_to_resend|.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 base::WeakPtrFactory<QuicSimpleClient> weak_factory_; 262 base::WeakPtrFactory<QuicSimpleClient> weak_factory_;
263 263
264 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient); 264 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient);
265 }; 265 };
266 266
267 } // namespace tools 267 } // namespace tools
268 } // namespace net 268 } // namespace net
269 269
270 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ 270 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698