| Index: net/base/default_origin_bound_cert_store.h
|
| diff --git a/net/base/default_origin_bound_cert_store.h b/net/base/default_origin_bound_cert_store.h
|
| index 05dd70bd3114a3c04c78689f0cd6cbd1fd6dc893..f5e03943daf9a3b2f2a67895530ecbf826f11fc0 100644
|
| --- a/net/base/default_origin_bound_cert_store.h
|
| +++ b/net/base/default_origin_bound_cert_store.h
|
| @@ -31,7 +31,6 @@ namespace net {
|
| // by IO and origin bound cert management UI.
|
| class NET_EXPORT DefaultOriginBoundCertStore : public OriginBoundCertStore {
|
| public:
|
| - class OriginBoundCert;
|
| class PersistentStore;
|
|
|
| // The key for each OriginBoundCert* in OriginBoundCertMap is the
|
| @@ -55,16 +54,20 @@ class NET_EXPORT DefaultOriginBoundCertStore : public OriginBoundCertStore {
|
| void FlushStore(const base::Closure& completion_task);
|
|
|
| // OriginBoundCertStore implementation.
|
| - virtual bool GetOriginBoundCert(const std::string& origin,
|
| - std::string* private_key_result,
|
| - std::string* cert_result) OVERRIDE;
|
| - virtual void SetOriginBoundCert(const std::string& origin,
|
| - const std::string& private_key,
|
| - const std::string& cert) OVERRIDE;
|
| + virtual bool GetOriginBoundCert(
|
| + const std::string& origin,
|
| + SSLClientCertType* type,
|
| + std::string* private_key_result,
|
| + std::string* cert_result) OVERRIDE;
|
| + virtual void SetOriginBoundCert(
|
| + const std::string& origin,
|
| + SSLClientCertType type,
|
| + const std::string& private_key,
|
| + const std::string& cert) OVERRIDE;
|
| virtual void DeleteOriginBoundCert(const std::string& origin) OVERRIDE;
|
| virtual void DeleteAll() OVERRIDE;
|
| virtual void GetAllOriginBoundCerts(
|
| - std::vector<OriginBoundCertInfo>* origin_bound_certs) OVERRIDE;
|
| + std::vector<OriginBoundCert>* origin_bound_certs) OVERRIDE;
|
| virtual int GetCertCount() OVERRIDE;
|
|
|
| private:
|
| @@ -113,25 +116,6 @@ class NET_EXPORT DefaultOriginBoundCertStore : public OriginBoundCertStore {
|
| DISALLOW_COPY_AND_ASSIGN(DefaultOriginBoundCertStore);
|
| };
|
|
|
| -// The OriginBoundCert class contains a private key in addition to the origin
|
| -// and the cert.
|
| -class NET_EXPORT DefaultOriginBoundCertStore::OriginBoundCert {
|
| - public:
|
| - OriginBoundCert();
|
| - OriginBoundCert(const std::string& origin,
|
| - const std::string& privatekey,
|
| - const std::string& cert);
|
| -
|
| - const std::string& origin() const { return origin_; }
|
| - const std::string& private_key() const { return private_key_; }
|
| - const std::string& cert() const { return cert_; }
|
| -
|
| - private:
|
| - std::string origin_;
|
| - std::string private_key_;
|
| - std::string cert_;
|
| -};
|
| -
|
| typedef base::RefCountedThreadSafe<DefaultOriginBoundCertStore::PersistentStore>
|
| RefcountedPersistentStore;
|
|
|
| @@ -144,7 +128,7 @@ class NET_EXPORT DefaultOriginBoundCertStore::PersistentStore
|
| // called only once at startup. Note that the certs are individually allocated
|
| // and that ownership is transferred to the caller upon return.
|
| virtual bool Load(
|
| - std::vector<DefaultOriginBoundCertStore::OriginBoundCert*>* certs) = 0;
|
| + std::vector<OriginBoundCert*>* certs) = 0;
|
|
|
| virtual void AddOriginBoundCert(const OriginBoundCert& cert) = 0;
|
|
|
|
|