| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |