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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 class SSLPolicy { | 31 class SSLPolicy { |
32 public: | 32 public: |
33 explicit SSLPolicy(SSLPolicyBackend* backend); | 33 explicit SSLPolicy(SSLPolicyBackend* backend); |
34 | 34 |
35 // An error occurred with the certificate in an SSL connection. | 35 // An error occurred with the certificate in an SSL connection. |
36 void OnCertError(std::unique_ptr<SSLErrorHandler> handler); | 36 void OnCertError(std::unique_ptr<SSLErrorHandler> handler); |
37 | 37 |
38 void DidRunInsecureContent(NavigationEntryImpl* entry, | 38 void DidRunInsecureContent(NavigationEntryImpl* entry, |
39 const GURL& security_origin); | 39 const GURL& security_origin); |
40 | 40 |
| 41 void DidRunContentWithCertErrors(NavigationEntryImpl* entry, |
| 42 const GURL& security_origin); |
| 43 |
41 // We have started a resource request for |url| with the given |cert_id| and | 44 // We have started a resource request for |url| with the given |cert_id| and |
42 // |cert_status|. | 45 // |cert_status|. |
43 void OnRequestStarted(const GURL& url, | 46 void OnRequestStarted(const GURL& url, |
44 int cert_id, | 47 int cert_id, |
45 net::CertStatus cert_status); | 48 net::CertStatus cert_status); |
46 | 49 |
47 // Update the SSL information in |entry| to match the current state. | 50 // Update the SSL information in |entry| to match the current state. |
48 // |web_contents| is the WebContents associated with this entry. | 51 // |web_contents| is the WebContents associated with this entry. |
49 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); | 52 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); |
50 | 53 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 86 |
84 // The backend we use to enact our decisions. | 87 // The backend we use to enact our decisions. |
85 SSLPolicyBackend* backend_; | 88 SSLPolicyBackend* backend_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); | 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace content | 93 } // namespace content |
91 | 94 |
92 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 95 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
OLD | NEW |