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> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/threading/non_thread_safe.h" | |
13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
14 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 | 16 |
18 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors. | 17 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors. |
19 // For example, SSLHostStateDelegate remembers whether the user has whitelisted | 18 // For example, SSLHostStateDelegate remembers whether the user has whitelisted |
20 // 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 |
21 // 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 |
22 // controllers. | 21 // controllers. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // error combination exception is allowed, use QueryPolicy(). | 81 // error combination exception is allowed, use QueryPolicy(). |
83 virtual bool HasAllowException(const std::string& host) const = 0; | 82 virtual bool HasAllowException(const std::string& host) const = 0; |
84 | 83 |
85 protected: | 84 protected: |
86 virtual ~SSLHostStateDelegate() {} | 85 virtual ~SSLHostStateDelegate() {} |
87 }; | 86 }; |
88 | 87 |
89 } // namespace content | 88 } // namespace content |
90 | 89 |
91 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 90 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
OLD | NEW |