Chromium Code Reviews| Index: content/public/browser/ssl_host_state_decisions.h |
| diff --git a/content/public/browser/ssl_host_state_decisions.h b/content/public/browser/ssl_host_state_decisions.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..01d38d5d3647ea796927cd041f4a1123b28c5194 |
| --- /dev/null |
| +++ b/content/public/browser/ssl_host_state_decisions.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |
| +#define CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/common/content_export.h" |
| +#include "net/cert/x509_certificate.h" |
| + |
| +class GURL; |
| + |
| +namespace content { |
| + |
| +// SSLHostStateDecisions must be implemented by the embedder, to provide the |
| +// storage strategy (if any) for certificate decisions. |
| +class CONTENT_EXPORT SSLHostStateDecisions |
| + : public base::RefCountedThreadSafe<SSLHostStateDecisions> { |
|
Ryan Sleevi
2014/07/08 23:53:29
In general, I like to push back against introducin
jww
2014/07/11 00:08:42
So I'm pretty sure ownership transfer is out of th
Ryan Sleevi
2014/07/11 00:48:49
Except with RefCounting, you're always (potentiall
jww
2014/07/11 01:52:07
Ha. Looking again, I don't ever even assign it to
|
| + public: |
| + virtual void DenyCert(const GURL& url, |
| + net::X509Certificate* cert, |
| + net::CertStatus error) = 0; |
| + virtual void AllowCert(const GURL& url, |
| + net::X509Certificate* cert, |
| + net::CertStatus error) = 0; |
| + virtual void Clear() = 0; |
| + virtual net::CertPolicy::Judgment QueryPolicy(const GURL& url, |
| + net::X509Certificate* cert, |
| + net::CertStatus error) = 0; |
| + virtual void RevokeAllowAndDenyPreferences(const GURL& url) = 0; |
| + virtual bool HasAllowedOrDeniedCert(const GURL& url) = 0; |
| + |
| + protected: |
| + virtual ~SSLHostStateDecisions() {} |
| + |
| + private: |
| + friend class base::RefCountedThreadSafe<SSLHostStateDecisions>; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |