OLD | NEW |
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_CERT_COMPRESSOR_H_ | 5 #ifndef NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ |
6 #define NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ | 6 #define NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 const CommonCertSets* common_sets); | 41 const CommonCertSets* common_sets); |
42 | 42 |
43 // DecompressChain decompresses the result of |CompressChain|, given in |in|, | 43 // DecompressChain decompresses the result of |CompressChain|, given in |in|, |
44 // into a series of certificates that are written to |out_certs|. | 44 // into a series of certificates that are written to |out_certs|. |
45 // |cached_certs| contains certificates that the peer may have omitted and | 45 // |cached_certs| contains certificates that the peer may have omitted and |
46 // |common_sets| contains the common certificate sets known locally. | 46 // |common_sets| contains the common certificate sets known locally. |
47 static bool DecompressChain(base::StringPiece in, | 47 static bool DecompressChain(base::StringPiece in, |
48 const std::vector<std::string>& cached_certs, | 48 const std::vector<std::string>& cached_certs, |
49 const CommonCertSets* common_sets, | 49 const CommonCertSets* common_sets, |
50 std::vector<std::string>* out_certs); | 50 std::vector<std::string>* out_certs); |
| 51 |
| 52 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(CertCompressor); |
51 }; | 54 }; |
52 | 55 |
53 } // namespace net | 56 } // namespace net |
54 | 57 |
55 #endif // NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ | 58 #endif // NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ |
OLD | NEW |