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