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

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

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 years, 7 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/proxy/proxy_script_decider_unittest.cc ('k') | ui/gfx/win/direct_write.cc » ('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 #include <memory> 10 #include <memory>
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 helper.ValidationComplete(QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER, 1006 helper.ValidationComplete(QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER,
1007 "Invalid SNI name"); 1007 "Invalid SNI name");
1008 return; 1008 return;
1009 } 1009 }
1010 1010
1011 client_hello.GetStringPiece(kUAID, &info->user_agent_id); 1011 client_hello.GetStringPiece(kUAID, &info->user_agent_id);
1012 1012
1013 HandshakeFailureReason source_address_token_error = MAX_FAILURE_REASON; 1013 HandshakeFailureReason source_address_token_error = MAX_FAILURE_REASON;
1014 StringPiece srct; 1014 StringPiece srct;
1015 if (client_hello.GetStringPiece(kSourceAddressTokenTag, &srct)) { 1015 if (client_hello.GetStringPiece(kSourceAddressTokenTag, &srct)) {
1016 Config& config = 1016 Config& config = requested_config ? *requested_config : *primary_config;
1017 requested_config != nullptr ? *requested_config : *primary_config;
1018 source_address_token_error = 1017 source_address_token_error =
1019 ParseSourceAddressToken(config, srct, &info->source_address_tokens); 1018 ParseSourceAddressToken(config, srct, &info->source_address_tokens);
1020 1019
1021 if (source_address_token_error == HANDSHAKE_OK) { 1020 if (source_address_token_error == HANDSHAKE_OK) {
1022 source_address_token_error = ValidateSourceAddressTokens( 1021 source_address_token_error = ValidateSourceAddressTokens(
1023 info->source_address_tokens, info->client_ip, info->now, 1022 info->source_address_tokens, info->client_ip, info->now,
1024 &client_hello_state->cached_network_params); 1023 &client_hello_state->cached_network_params);
1025 } 1024 }
1026 info->valid_source_address_token = 1025 info->valid_source_address_token =
1027 (source_address_token_error == HANDSHAKE_OK); 1026 (source_address_token_error == HANDSHAKE_OK);
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 priority(0), 1826 priority(0),
1828 source_address_token_boxer(nullptr) {} 1827 source_address_token_boxer(nullptr) {}
1829 1828
1830 QuicCryptoServerConfig::Config::~Config() { 1829 QuicCryptoServerConfig::Config::~Config() {
1831 STLDeleteElements(&key_exchanges); 1830 STLDeleteElements(&key_exchanges);
1832 } 1831 }
1833 1832
1834 QuicCryptoProof::QuicCryptoProof() {} 1833 QuicCryptoProof::QuicCryptoProof() {}
1835 QuicCryptoProof::~QuicCryptoProof() {} 1834 QuicCryptoProof::~QuicCryptoProof() {}
1836 } // namespace net 1835 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_decider_unittest.cc ('k') | ui/gfx/win/direct_write.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698