| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/quic/crypto/common_cert_set.h" | 14 #include "net/quic/crypto/common_cert_set.h" |
| 15 #include "net/quic/crypto/crypto_protocol.h" | 15 #include "net/quic/crypto/crypto_protocol.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 // CertCompressor provides functions for compressing and decompressing | 19 // CertCompressor provides functions for compressing and decompressing |
| 20 // certificate chains using three techniquies: | 20 // certificate chains using three techniquies: |
| 21 // 1) The peer may provide a list of a 64-bit, FNV-1a hashes of certificates | 21 // 1) The peer may provide a list of a 64-bit, FNV-1a hashes of certificates |
| (...skipping 27 matching lines...) Expand all Loading... |
| 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 | 51 |
| 52 private: | 52 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(CertCompressor); | 53 DISALLOW_COPY_AND_ASSIGN(CertCompressor); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace net | 56 } // namespace net |
| 57 | 57 |
| 58 #endif // NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ | 58 #endif // NET_QUIC_CRYPTO_CERT_COMPRESSOR_H_ |
| OLD | NEW |