Index: net/quic/crypto/proof_source_chromium.h |
diff --git a/net/quic/crypto/proof_source_chromium.h b/net/quic/crypto/proof_source_chromium.h |
index 45deb66c68748e9afcb8320f3244e50c0347237c..ef5e6768c3419891d59126ac6808716e11349654 100644 |
--- a/net/quic/crypto/proof_source_chromium.h |
+++ b/net/quic/crypto/proof_source_chromium.h |
@@ -10,7 +10,10 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/files/file_util.h" |
+#include "crypto/rsa_private_key.h" |
#include "net/base/net_export.h" |
+#include "net/cert/x509_certificate.h" |
#include "net/quic/crypto/proof_source.h" |
namespace net { |
@@ -20,7 +23,12 @@ namespace net { |
class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource { |
public: |
ProofSourceChromium(); |
- ~ProofSourceChromium() override {} |
+ ~ProofSourceChromium() override; |
+ |
+ // Initializes this object based on the certificate chain in |cert_path|, |
+ // and the PKCS#8 RSA private key in |key_path|. |
+ bool Initialize(const base::FilePath& cert_path, |
+ const base::FilePath& key_path); |
// ProofSource interface |
bool GetProof(const IPAddressNumber& server_ip, |
@@ -31,6 +39,9 @@ class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource { |
std::string* out_signature) override; |
private: |
+ scoped_ptr<crypto::RSAPrivateKey> private_key_; |
+ std::vector<std::string> certificates_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium); |
}; |