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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // An error occurred with the certificate in an SSL connection. | 33 // An error occurred with the certificate in an SSL connection. |
34 void OnCertError(SSLCertErrorHandler* handler); | 34 void OnCertError(SSLCertErrorHandler* handler); |
35 | 35 |
36 void DidRunInsecureContent(content::NavigationEntryImpl* entry, | 36 void DidRunInsecureContent(content::NavigationEntryImpl* entry, |
37 const std::string& security_origin); | 37 const std::string& security_origin); |
38 | 38 |
39 // We have started a resource request with the given info. | 39 // We have started a resource request with the given info. |
40 void OnRequestStarted(SSLRequestInfo* info); | 40 void OnRequestStarted(SSLRequestInfo* info); |
41 | 41 |
42 // Update the SSL information in |entry| to match the current state. | 42 // Update the SSL information in |entry| to match the current state. |
43 // |tab_contents| is the TabContents associated with this entry. | 43 // |web_contents| is the WebContentsImpl associated with this entry. |
44 void UpdateEntry(content::NavigationEntryImpl* entry, | 44 void UpdateEntry(content::NavigationEntryImpl* entry, |
45 WebContentsImpl* web_contents); | 45 WebContentsImpl* web_contents); |
46 | 46 |
47 SSLPolicyBackend* backend() const { return backend_; } | 47 SSLPolicyBackend* backend() const { return backend_; } |
48 | 48 |
49 private: | 49 private: |
50 // Callback that the user chose to accept or deny the certificate. | 50 // Callback that the user chose to accept or deny the certificate. |
51 void OnAllowCertificate(scoped_refptr<SSLCertErrorHandler> handler, | 51 void OnAllowCertificate(scoped_refptr<SSLCertErrorHandler> handler, |
52 bool allow); | 52 bool allow); |
53 | 53 |
(...skipping 11 matching lines...) Expand all Loading... |
65 // Mark |origin| as having run insecure content in the process with ID |pid|. | 65 // Mark |origin| as having run insecure content in the process with ID |pid|. |
66 void OriginRanInsecureContent(const std::string& origin, int pid); | 66 void OriginRanInsecureContent(const std::string& origin, int pid); |
67 | 67 |
68 // The backend we use to enact our decisions. | 68 // The backend we use to enact our decisions. |
69 SSLPolicyBackend* backend_; | 69 SSLPolicyBackend* backend_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); | 71 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 74 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
OLD | NEW |