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

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

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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 | « 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
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // initialization succeeds, false otherwise. 68 // initialization succeeds, false otherwise.
69 bool Initialize(); 69 bool Initialize();
70 70
71 // "Connect" to the QUIC server, including performing synchronous crypto 71 // "Connect" to the QUIC server, including performing synchronous crypto
72 // handshake. 72 // handshake.
73 bool Connect(); 73 bool Connect();
74 74
75 // Start the crypto handshake. This can be done in place of the synchronous 75 // Start the crypto handshake. This can be done in place of the synchronous
76 // Connect(), but callers are responsible for making sure the crypto handshake 76 // Connect(), but callers are responsible for making sure the crypto handshake
77 // completes. 77 // completes.
78 bool StartConnect(); 78 void StartConnect();
79 79
80 // Returns true if the crypto handshake has yet to establish encryption. 80 // Returns true if the crypto handshake has yet to establish encryption.
81 // Returns false if encryption is active (even if the server hasn't confirmed 81 // Returns false if encryption is active (even if the server hasn't confirmed
82 // the handshake) or if the connection has been closed. 82 // the handshake) or if the connection has been closed.
83 bool EncryptionBeingEstablished(); 83 bool EncryptionBeingEstablished();
84 84
85 // Disconnects from the QUIC server. 85 // Disconnects from the QUIC server.
86 void Disconnect(); 86 void Disconnect();
87 87
88 // Sends a request simple GET for each URL in |args|, and then waits for 88 // Sends a request simple GET for each URL in |args|, and then waits for
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // when the stream is closed (in OnClose). 265 // when the stream is closed (in OnClose).
266 bool print_response_; 266 bool print_response_;
267 267
268 DISALLOW_COPY_AND_ASSIGN(QuicClient); 268 DISALLOW_COPY_AND_ASSIGN(QuicClient);
269 }; 269 };
270 270
271 } // namespace tools 271 } // namespace tools
272 } // namespace net 272 } // namespace net
273 273
274 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 274 #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