| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_SSL_SSL_HOST_STATE_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ |
| 6 #define CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 #include <map> | 8 #include <map> |
| 10 #include <set> | 9 #include <set> |
| 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/basictypes.h" | |
| 14 #include "base/supports_user_data.h" | 14 #include "base/supports_user_data.h" |
| 15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "net/base/x509_certificate.h" | 18 #include "net/cert/x509_certificate.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class BrowserContext; | 21 class BrowserContext; |
| 22 | 22 |
| 23 // SSLHostState | 23 // SSLHostState |
| 24 // | 24 // |
| 25 // The SSLHostState encapulates the host-specific state for SSL errors. For | 25 // The SSLHostState encapulates the host-specific state for SSL errors. For |
| 26 // example, SSLHostState remembers whether the user has whitelisted a | 26 // example, SSLHostState remembers whether the user has whitelisted a |
| 27 // particular broken cert for use with particular host. We separate this state | 27 // particular broken cert for use with particular host. We separate this state |
| 28 // from the SSLManager because this state is shared across many navigation | 28 // from the SSLManager because this state is shared across many navigation |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // Certificate policies for each host. | 69 // Certificate policies for each host. |
| 70 std::map<std::string, net::CertPolicy> cert_policy_for_host_; | 70 std::map<std::string, net::CertPolicy> cert_policy_for_host_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(SSLHostState); | 72 DISALLOW_COPY_AND_ASSIGN(SSLHostState); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace content | 75 } // namespace content |
| 76 | 76 |
| 77 #endif // CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ | 77 #endif // CONTENT_BROWSER_SSL_SSL_HOST_STATE_H_ |
| OLD | NEW |