Chromium Code Reviews| 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 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
| |
| 21 public: | |
| 22 virtual void DenyCert(const GURL& url, | |
| 23 net::X509Certificate* cert, | |
| 24 net::CertStatus error) = 0; | |
| 25 virtual void AllowCert(const GURL& url, | |
| 26 net::X509Certificate* cert, | |
| 27 net::CertStatus error) = 0; | |
| 28 virtual void Clear() = 0; | |
| 29 virtual net::CertPolicy::Judgment QueryPolicy(const GURL& url, | |
| 30 net::X509Certificate* cert, | |
| 31 net::CertStatus error) = 0; | |
| 32 virtual void RevokeAllowAndDenyPreferences(const GURL& url) = 0; | |
| 33 virtual bool HasAllowedOrDeniedCert(const GURL& url) = 0; | |
| 34 | |
| 35 protected: | |
| 36 virtual ~SSLHostStateDecisions() {} | |
| 37 | |
| 38 private: | |
| 39 friend class base::RefCountedThreadSafe<SSLHostStateDecisions>; | |
| 40 }; | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_ | |
| OLD | NEW |