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 <memory> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors. | 17 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors. |
17 // For example, SSLHostStateDelegate remembers whether the user has whitelisted | 18 // For example, SSLHostStateDelegate remembers whether the user has whitelisted |
18 // a particular broken cert for use with particular host. We separate this | 19 // a particular broken cert for use with particular host. We separate this |
19 // state from the SSLManager because this state is shared across many navigation | 20 // state from the SSLManager because this state is shared across many navigation |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // error combination exception is allowed, use QueryPolicy(). | 65 // error combination exception is allowed, use QueryPolicy(). |
65 virtual bool HasAllowException(const std::string& host) const = 0; | 66 virtual bool HasAllowException(const std::string& host) const = 0; |
66 | 67 |
67 protected: | 68 protected: |
68 virtual ~SSLHostStateDelegate() {} | 69 virtual ~SSLHostStateDelegate() {} |
69 }; | 70 }; |
70 | 71 |
71 } // namespace content | 72 } // namespace content |
72 | 73 |
73 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 74 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
OLD | NEW |