OLD | NEW |
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_PROOF_SOURCE_CHROMIUM_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ |
6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_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/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/quic/crypto/proof_source.h" | 14 #include "net/quic/crypto/proof_source.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 // ProofSourceChromium implements the QUIC ProofSource interface. | 18 // ProofSourceChromium implements the QUIC ProofSource interface. |
19 // TODO(rtenneti): implement details of this class. | 19 // TODO(rtenneti): implement details of this class. |
20 class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource { | 20 class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource { |
21 public: | 21 public: |
22 ProofSourceChromium(); | 22 ProofSourceChromium(); |
23 virtual ~ProofSourceChromium() {} | 23 virtual ~ProofSourceChromium() {} |
24 | 24 |
25 // ProofSource interface | 25 // ProofSource interface |
26 virtual bool GetProof(const std::string& hostname, | 26 virtual bool GetProof(const std::string& hostname, |
27 const std::string& server_config, | 27 const std::string& server_config, |
28 bool ecdsa_ok, | 28 bool ecdsa_ok, |
29 const std::vector<std::string>** out_certs, | 29 const std::vector<std::string>** out_certs, |
30 std::string* out_signature) OVERRIDE; | 30 std::string* out_signature) override; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium); | 33 DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace net | 36 } // namespace net |
37 | 37 |
38 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ | 38 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_CHROMIUM_H_ |
OLD | NEW |