OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 net::CertStatus error, | 47 net::CertStatus error, |
48 bool* expired_previous_decision) = 0; | 48 bool* expired_previous_decision) = 0; |
49 | 49 |
50 // Records that a host has run insecure content. | 50 // Records that a host has run insecure content. |
51 virtual void HostRanInsecureContent(const std::string& host, int pid) = 0; | 51 virtual void HostRanInsecureContent(const std::string& host, int pid) = 0; |
52 | 52 |
53 // Returns whether the specified host ran insecure content. | 53 // Returns whether the specified host ran insecure content. |
54 virtual bool DidHostRunInsecureContent(const std::string& host, | 54 virtual bool DidHostRunInsecureContent(const std::string& host, |
55 int pid) const = 0; | 55 int pid) const = 0; |
56 | 56 |
| 57 // Revokes all SSL certificate error allow exceptions made by the user for |
| 58 // |host|. |
| 59 virtual void RevokeUserAllowExceptions(const std::string& host) = 0; |
| 60 |
| 61 // Returns whether the user has allowed a certificate error exception for |
| 62 // |host|. This does not mean that *all* certificate errors are allowed, just |
| 63 // that there exists an exception. To see if a particular certificate and |
| 64 // error combination exception is allowed, use QueryPolicy(). |
| 65 virtual bool HasAllowException(const std::string& host) const = 0; |
| 66 |
57 protected: | 67 protected: |
58 virtual ~SSLHostStateDelegate() {} | 68 virtual ~SSLHostStateDelegate() {} |
59 }; | 69 }; |
60 | 70 |
61 } // namespace content | 71 } // namespace content |
62 | 72 |
63 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 73 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
OLD | NEW |