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_POLICY_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/public/common/resource_type.h" | 12 #include "content/public/common/resource_type.h" |
13 #include "content/public/common/security_style.h" | 13 #include "content/public/common/security_style.h" |
14 #include "net/cert/cert_status_flags.h" | 14 #include "net/cert/cert_status_flags.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class NavigationEntryImpl; | 19 class NavigationEntryImpl; |
20 class SSLCertErrorHandler; | 20 class SSLCertErrorHandler; |
21 class SSLPolicyBackend; | 21 class SSLPolicyBackend; |
22 class SSLRequestInfo; | 22 class SSLRequestInfo; |
23 class WebContents; | 23 class WebContents; |
24 struct SSLStatus; | |
25 | 24 |
26 // SSLPolicy | 25 // SSLPolicy |
27 // | 26 // |
28 // This class is responsible for making the security decisions that concern the | 27 // This class is responsible for making the security decisions that concern the |
29 // SSL trust indicators. It relies on the SSLPolicyBackend to actually enact | 28 // SSL trust indicators. It relies on the SSLPolicyBackend to actually enact |
30 // the decisions it reaches. | 29 // the decisions it reaches. |
31 // | 30 // |
32 class SSLPolicy { | 31 class SSLPolicy { |
33 public: | 32 public: |
34 explicit SSLPolicy(SSLPolicyBackend* backend); | 33 explicit SSLPolicy(SSLPolicyBackend* backend); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 86 |
88 // The backend we use to enact our decisions. | 87 // The backend we use to enact our decisions. |
89 SSLPolicyBackend* backend_; | 88 SSLPolicyBackend* backend_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); | 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace content | 93 } // namespace content |
95 | 94 |
96 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 95 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
OLD | NEW |