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

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

Issue 1818393003: QUIC - Persist "Hash of the CHLO message" and "Signed timestamp of the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default chlo_hash to empty string for old disk cache data 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_client_config.cc ('k') | net/quic/crypto/quic_server_info.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_SERVER_INFO_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_
6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ 6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 struct State { 75 struct State {
76 State(); 76 State();
77 ~State(); 77 ~State();
78 78
79 void Clear(); 79 void Clear();
80 80
81 // This class matches QuicClientCryptoConfig::CachedState. 81 // This class matches QuicClientCryptoConfig::CachedState.
82 std::string server_config; // A serialized handshake message. 82 std::string server_config; // A serialized handshake message.
83 std::string source_address_token; // An opaque proof of IP ownership. 83 std::string source_address_token; // An opaque proof of IP ownership.
84 std::string cert_sct; // Signed timestamp of the leaf cert.
85 std::string chlo_hash; // Hash of the CHLO message.
84 std::vector<std::string> certs; // A list of certificates in leaf-first 86 std::vector<std::string> certs; // A list of certificates in leaf-first
85 // order. 87 // order.
86 std::string server_config_sig; // A signature of |server_config_|. 88 std::string server_config_sig; // A signature of |server_config_|.
87 89
88 private: 90 private:
89 DISALLOW_COPY_AND_ASSIGN(State); 91 DISALLOW_COPY_AND_ASSIGN(State);
90 }; 92 };
91 93
92 // Once the data is ready, it can be read using the following members. These 94 // Once the data is ready, it can be read using the following members. These
93 // members can then be updated before calling |Persist|. 95 // members can then be updated before calling |Persist|.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // GetForServer returns a fresh, allocated QuicServerInfo for the given 139 // GetForServer returns a fresh, allocated QuicServerInfo for the given
138 // |server_id| or NULL on failure. 140 // |server_id| or NULL on failure.
139 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; 141 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0;
140 142
141 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory); 143 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory);
142 }; 144 };
143 145
144 } // namespace net 146 } // namespace net
145 147
146 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ 148 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.cc ('k') | net/quic/crypto/quic_server_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698