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

Unified Diff: net/quic/quic_client_session.h

Issue 23279011: Require handshake confirmation until a QUIC connection is created succesfully when using a new netw… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 7 years, 4 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 | « no previous file | net/quic/quic_client_session.cc » ('j') | net/quic/quic_client_session.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.h
diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h
index 555837fe9a5643b9aa7421de94c02f86dfb55a68..bdfaf2fd4ef2ed653d0d7b4f5b1634e7a47705e9 100644
--- a/net/quic/quic_client_session.h
+++ b/net/quic/quic_client_session.h
@@ -113,7 +113,8 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession {
virtual void ConnectionClose(QuicErrorCode error, bool from_peer) OVERRIDE;
// Performs a crypto handshake with the server.
- int CryptoConnect(const CompletionCallback& callback);
+ int CryptoConnect(bool require_confirmation,
+ const CompletionCallback& callback);
// Causes the QuicConnectionHelper to start reading from the socket
// and passing the data along to the QuicConnection.
@@ -152,7 +153,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession {
// delete |this|.
void NotifyFactoryOfSessionClose();
- base::WeakPtrFactory<QuicClientSession> weak_factory_;
+ bool require_confirmation_;
scoped_ptr<QuicCryptoClientStream> crypto_stream_;
QuicStreamFactory* stream_factory_;
scoped_ptr<DatagramClientSocket> socket_;
@@ -163,6 +164,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicSession {
size_t num_total_streams_;
BoundNetLog net_log_;
QuicConnectionLogger logger_;
+ base::WeakPtrFactory<QuicClientSession> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
};
« no previous file with comments | « no previous file | net/quic/quic_client_session.cc » ('j') | net/quic/quic_client_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698