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

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

Issue 255783002: QUIC - Minor clean up of QUIC Server Info memory cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed wtc's comments in Patch Set 2 Created 6 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 | Annotate | Revision Log
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 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 QuicWallTime now, 57 QuicWallTime now,
58 std::string* error_details); 58 std::string* error_details);
59 59
60 // InvalidateServerConfig clears the cached server config (if any). 60 // InvalidateServerConfig clears the cached server config (if any).
61 void InvalidateServerConfig(); 61 void InvalidateServerConfig();
62 62
63 // SetProof stores a certificate chain and signature. 63 // SetProof stores a certificate chain and signature.
64 void SetProof(const std::vector<std::string>& certs, 64 void SetProof(const std::vector<std::string>& certs,
65 base::StringPiece signature); 65 base::StringPiece signature);
66 66
67 // Clears all the data.
68 void Clear();
69
67 // Clears the certificate chain and signature and invalidates the proof. 70 // Clears the certificate chain and signature and invalidates the proof.
68 void ClearProof(); 71 void ClearProof();
69 72
70 // SetProofValid records that the certificate chain and signature have been 73 // SetProofValid records that the certificate chain and signature have been
71 // validated and that it's safe to assume that the server is legitimate. 74 // validated and that it's safe to assume that the server is legitimate.
72 // (Note: this does not check the chain or signature.) 75 // (Note: this does not check the chain or signature.)
73 void SetProofValid(); 76 void SetProofValid();
74 77
75 // If the server config or the proof has changed then it needs to be 78 // If the server config or the proof has changed then it needs to be
76 // revalidated. Helper function to keep server_config_valid_ and 79 // revalidated. Helper function to keep server_config_valid_ and
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 272
270 // True if ECDSA should be disabled. 273 // True if ECDSA should be disabled.
271 bool disable_ecdsa_; 274 bool disable_ecdsa_;
272 275
273 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 276 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
274 }; 277 };
275 278
276 } // namespace net 279 } // namespace net
277 280
278 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ 281 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698