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

Side by Side Diff: net/quic/p2p/quic_p2p_crypto_stream.cc

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: Fixed a test that I missed earlier. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "net/quic/p2p/quic_p2p_crypto_stream.h" 5 #include "net/quic/p2p/quic_p2p_crypto_stream.h"
6 6
7 #include "crypto/hkdf.h" 7 #include "crypto/hkdf.h"
8 #include "net/quic/crypto/crypto_handshake_message.h" 8 #include "net/quic/crypto/crypto_handshake_message.h"
9 #include "net/quic/crypto/quic_decrypter.h" 9 #include "net/quic/crypto/quic_decrypter.h"
10 #include "net/quic/crypto/quic_encrypter.h" 10 #include "net/quic/crypto/quic_encrypter.h"
(...skipping 23 matching lines...) Expand all
34 false /* don't latch */); 34 false /* don't latch */);
35 encryption_established_ = true; 35 encryption_established_ = true;
36 session()->OnCryptoHandshakeEvent(QuicSession::ENCRYPTION_FIRST_ESTABLISHED); 36 session()->OnCryptoHandshakeEvent(QuicSession::ENCRYPTION_FIRST_ESTABLISHED);
37 session()->OnConfigNegotiated(); 37 session()->OnConfigNegotiated();
38 session()->connection()->OnHandshakeComplete(); 38 session()->connection()->OnHandshakeComplete();
39 handshake_confirmed_ = true; 39 handshake_confirmed_ = true;
40 session()->OnCryptoHandshakeEvent(QuicSession::HANDSHAKE_CONFIRMED); 40 session()->OnCryptoHandshakeEvent(QuicSession::HANDSHAKE_CONFIRMED);
41 if (session()->connection()->perspective() == Perspective::IS_CLIENT) { 41 if (session()->connection()->perspective() == Perspective::IS_CLIENT) {
42 // Send a ping from the client to the server to satisfy QUIC's version 42 // Send a ping from the client to the server to satisfy QUIC's version
43 // negotiation. 43 // negotiation.
44 session()->connection()->SendPing(); 44 session()->connection()->SendPing(/*force=*/false);
45 } 45 }
46 return true; 46 return true;
47 } 47 }
48 48
49 } // namespace net 49 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698