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

Side by Side Diff: net/quic/crypto/crypto_handshake.h

Issue 1670863002: QUIC - minor cleanup changes to keep code in sync with the internal source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0204
Patch Set: Created 4 years, 10 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 | « no previous file | net/quic/quic_arena_scoped_ptr_test.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // The source-address token has expired. 80 // The source-address token has expired.
81 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19, 81 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19,
82 82
83 // The expected leaf certificate hash could not be validated. 83 // The expected leaf certificate hash could not be validated.
84 INVALID_EXPECTED_LEAF_CERTIFICATE = 21, 84 INVALID_EXPECTED_LEAF_CERTIFICATE = 21,
85 85
86 MAX_FAILURE_REASON = 22, 86 MAX_FAILURE_REASON = 22,
87 }; 87 };
88 88
89 // These errors will be packed into an uint32_t and we don't want to set the 89 // These errors will be packed into an uint32_t and we don't want to set the
90 // most 90 // most significant bit, which may be misinterpreted as the sign bit.
91 // significant bit, which may be misinterpreted as the sign bit.
92 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync"); 91 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync");
93 92
94 // A CrypterPair contains the encrypter and decrypter for an encryption level. 93 // A CrypterPair contains the encrypter and decrypter for an encryption level.
95 struct NET_EXPORT_PRIVATE CrypterPair { 94 struct NET_EXPORT_PRIVATE CrypterPair {
96 CrypterPair(); 95 CrypterPair();
97 ~CrypterPair(); 96 ~CrypterPair();
98 scoped_ptr<QuicEncrypter> encrypter; 97 scoped_ptr<QuicEncrypter> encrypter;
99 scoped_ptr<QuicDecrypter> decrypter; 98 scoped_ptr<QuicDecrypter> decrypter;
100 }; 99 };
101 100
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 179
181 const CommonCertSets* common_cert_sets; 180 const CommonCertSets* common_cert_sets;
182 181
183 private: 182 private:
184 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); 183 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
185 }; 184 };
186 185
187 } // namespace net 186 } // namespace net
188 187
189 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 188 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_arena_scoped_ptr_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698