Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "net/quic/crypto/crypto_protocol.h" | 5 #include "net/quic/crypto/crypto_protocol.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 CryptoHandshakeMessage::CryptoHandshakeMessage() {} | 9 CryptoHandshakeMessage::CryptoHandshakeMessage() {} |
| 10 CryptoHandshakeMessage::~CryptoHandshakeMessage() {} | 10 CryptoHandshakeMessage::~CryptoHandshakeMessage() {} |
| 11 | 11 |
| 12 QuicClientCryptoConfig::QuicClientCryptoConfig() : version(0) { | |
| 13 } | |
| 14 | |
| 15 void QuicClientCryptoConfig::SetDefaults() { | |
| 16 // Version must be 0. | |
| 17 version = 0; | |
| 18 | |
| 19 // Key exchange methods. | |
| 20 key_exchange.resize(2); | |
| 21 key_exchange[0] = kC255; | |
| 22 key_exchange[1] = kP256; | |
| 23 | |
| 24 // Authenticated encryption algorithms. | |
| 25 aead.resize(2); | |
| 26 aead[0] = kAESG; | |
| 27 aead[1] = kAESH; | |
| 28 | |
| 29 // Congestion control feedback types. | |
| 30 congestion_control.resize(1); | |
| 31 congestion_control[0] = kQBIC; | |
| 32 | |
| 33 // Idle connection state lifetime. | |
| 34 idle_connection_state_lifetime = QuicTime::Delta::FromMilliseconds(300000); | |
|
wtc
2013/01/15 03:57:59
Would you like me to add a QuicTime::Delta::FromSe
Ryan Hamilton
2013/01/15 04:27:41
The current code is fine with me.
| |
| 35 | |
| 36 // Keepalive timeout. | |
| 37 keepalive_timeout = QuicTime::Delta(); // Don't send keepalive probes. | |
| 38 } | |
| 39 | |
| 12 } // namespace net | 40 } // namespace net |
| OLD | NEW |