OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |
| 6 #define CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "net/cert/x509_certificate.h" |
| 12 |
| 13 class GURL; |
| 14 |
| 15 namespace content { |
| 16 |
| 17 // SSLHostStateDecisions must be implemented by the embedder, to provide the |
| 18 // storage strategy (if any) for certificate decisions. |
| 19 class CONTENT_EXPORT SSLHostStateDecisions { |
| 20 public: |
| 21 virtual void DenyCert(const GURL& url, |
| 22 net::X509Certificate* cert, |
| 23 net::CertStatus error) = 0; |
| 24 virtual void AllowCert(const GURL& url, |
| 25 net::X509Certificate* cert, |
| 26 net::CertStatus error) = 0; |
| 27 virtual void Clear() = 0; |
| 28 virtual net::CertPolicy::Judgment QueryPolicy(const GURL& url, |
| 29 net::X509Certificate* cert, |
| 30 net::CertStatus error) = 0; |
| 31 virtual void RevokeAllowAndDenyPreferences(const GURL& url) = 0; |
| 32 virtual bool HasAllowedOrDeniedCert(const GURL& url) = 0; |
| 33 |
| 34 protected: |
| 35 virtual ~SSLHostStateDecisions() {} |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ |
OLD | NEW |