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

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

Issue 2825493004: Uniquify QuicCryptoServerConfig::SetEphemeralKeySource (Closed)
Patch Set: Created 3 years, 8 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/core/crypto/quic_crypto_server_config.h ('k') | no next file » | 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/core/crypto/quic_crypto_server_config.h" 5 #include "net/quic/core/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 #include <memory> 10 #include <memory>
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 if (msg->GetUint64(kEXPY, &expiry_seconds) != QUIC_NO_ERROR) { 1744 if (msg->GetUint64(kEXPY, &expiry_seconds) != QUIC_NO_ERROR) {
1745 QUIC_LOG(WARNING) << "Server config message is missing EXPY"; 1745 QUIC_LOG(WARNING) << "Server config message is missing EXPY";
1746 return nullptr; 1746 return nullptr;
1747 } 1747 }
1748 config->expiry_time = QuicWallTime::FromUNIXSeconds(expiry_seconds); 1748 config->expiry_time = QuicWallTime::FromUNIXSeconds(expiry_seconds);
1749 1749
1750 return config; 1750 return config;
1751 } 1751 }
1752 1752
1753 void QuicCryptoServerConfig::SetEphemeralKeySource( 1753 void QuicCryptoServerConfig::SetEphemeralKeySource(
1754 EphemeralKeySource* ephemeral_key_source) { 1754 std::unique_ptr<EphemeralKeySource> ephemeral_key_source) {
1755 ephemeral_key_source_.reset(ephemeral_key_source); 1755 ephemeral_key_source_ = std::move(ephemeral_key_source);
1756 } 1756 }
1757 1757
1758 void QuicCryptoServerConfig::set_replay_protection(bool on) { 1758 void QuicCryptoServerConfig::set_replay_protection(bool on) {
1759 replay_protection_ = on; 1759 replay_protection_ = on;
1760 } 1760 }
1761 1761
1762 void QuicCryptoServerConfig::set_chlo_multiplier(size_t multiplier) { 1762 void QuicCryptoServerConfig::set_chlo_multiplier(size_t multiplier) {
1763 chlo_multiplier_ = multiplier; 1763 chlo_multiplier_ = multiplier;
1764 } 1764 }
1765 1765
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 expiry_time(QuicWallTime::Zero()), 1965 expiry_time(QuicWallTime::Zero()),
1966 priority(0), 1966 priority(0),
1967 source_address_token_boxer(nullptr) {} 1967 source_address_token_boxer(nullptr) {}
1968 1968
1969 QuicCryptoServerConfig::Config::~Config() {} 1969 QuicCryptoServerConfig::Config::~Config() {}
1970 1970
1971 QuicSignedServerConfig::QuicSignedServerConfig() {} 1971 QuicSignedServerConfig::QuicSignedServerConfig() {}
1972 QuicSignedServerConfig::~QuicSignedServerConfig() {} 1972 QuicSignedServerConfig::~QuicSignedServerConfig() {}
1973 1973
1974 } // namespace net 1974 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698