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

Unified Diff: net/tools/quic/quic_client.cc

Issue 17302002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index c83da84f1204f14e6637da92ce3c09f86b4fe0d6..b7e8d78c1909722498670a6fdc04633b50b7c214 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -199,6 +199,14 @@ void QuicClient::WaitForStreamToClose(QuicStreamId id) {
}
}
+void QuicClient::WaitForCryptoHandshakeConfirmed() {
+ DCHECK(connected());
+
+ while (!session_->IsCryptoHandshakeConfirmed()) {
+ epoll_server_.WaitForEventsAndExecuteCallbacks();
+ }
+}
+
bool QuicClient::WaitForEvents() {
DCHECK(connected());
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698