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

Side by Side Diff: net/quic/crypto/quic_crypto_server_config.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/quic_crypto_server_config.h" 5 #include "net/quic/crypto/quic_crypto_server_config.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 delete result; 198 delete result;
199 delete this; 199 delete this;
200 } 200 }
201 201
202 QuicCryptoServerConfig::ConfigOptions::ConfigOptions() 202 QuicCryptoServerConfig::ConfigOptions::ConfigOptions()
203 : expiry_time(QuicWallTime::Zero()), 203 : expiry_time(QuicWallTime::Zero()),
204 channel_id_enabled(false), 204 channel_id_enabled(false),
205 token_binding_enabled(false), 205 token_binding_enabled(false),
206 p256(false) {} 206 p256(false) {}
207 207
208 QuicCryptoServerConfig::ConfigOptions::ConfigOptions(
209 const ConfigOptions& other) = default;
210
208 QuicCryptoServerConfig::QuicCryptoServerConfig( 211 QuicCryptoServerConfig::QuicCryptoServerConfig(
209 StringPiece source_address_token_secret, 212 StringPiece source_address_token_secret,
210 QuicRandom* server_nonce_entropy, 213 QuicRandom* server_nonce_entropy,
211 ProofSource* proof_source) 214 ProofSource* proof_source)
212 : replay_protection_(true), 215 : replay_protection_(true),
213 chlo_multiplier_(kMultiplier), 216 chlo_multiplier_(kMultiplier),
214 configs_lock_(), 217 configs_lock_(),
215 primary_config_(nullptr), 218 primary_config_(nullptr),
216 next_config_promotion_time_(QuicWallTime::Zero()), 219 next_config_promotion_time_(QuicWallTime::Zero()),
217 server_nonce_strike_register_lock_(), 220 server_nonce_strike_register_lock_(),
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 priority(0), 1815 priority(0),
1813 source_address_token_boxer(nullptr) {} 1816 source_address_token_boxer(nullptr) {}
1814 1817
1815 QuicCryptoServerConfig::Config::~Config() { 1818 QuicCryptoServerConfig::Config::~Config() {
1816 STLDeleteElements(&key_exchanges); 1819 STLDeleteElements(&key_exchanges);
1817 } 1820 }
1818 1821
1819 QuicCryptoProof::QuicCryptoProof() {} 1822 QuicCryptoProof::QuicCryptoProof() {}
1820 QuicCryptoProof::~QuicCryptoProof() {} 1823 QuicCryptoProof::~QuicCryptoProof() {}
1821 } // namespace net 1824 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698