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. | |
jam
2014/07/31 22:01:08
this sounds like it's required by the embedder, wh
jww
2014/07/31 23:53:10
Done.
| |
19 class CONTENT_EXPORT SSLHostStateDecisions { | |
jam
2014/07/31 22:01:08
for consistency, this should be something like SSL
jww
2014/07/31 23:53:10
I've changed it to SSLHostStateDecisionsDelegate s
jww
2014/08/01 00:21:35
Okay, so I think I understand a bit better what yo
| |
20 public: | |
21 virtual void DenyCert(const GURL& url, | |
jam
2014/07/31 22:01:08
nit: please comment all these methods
jww
2014/07/31 23:53:10
Done.
| |
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 |