| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ | 6 #define CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Returns whether the specified host ran insecure content. | 35 // Returns whether the specified host ran insecure content. |
| 36 bool DidHostRunInsecureContent(const std::string& host, int pid) const; | 36 bool DidHostRunInsecureContent(const std::string& host, int pid) const; |
| 37 | 37 |
| 38 // Records that |cert| is permitted to be used for |host| in the future. | 38 // Records that |cert| is permitted to be used for |host| in the future. |
| 39 void DenyCertForHost(net::X509Certificate* cert, const std::string& host); | 39 void DenyCertForHost(net::X509Certificate* cert, const std::string& host); |
| 40 | 40 |
| 41 // Records that |cert| is not permitted to be used for |host| in the future. | 41 // Records that |cert| is not permitted to be used for |host| in the future. |
| 42 void AllowCertForHost(net::X509Certificate* cert, const std::string& host); | 42 void AllowCertForHost(net::X509Certificate* cert, const std::string& host); |
| 43 | 43 |
| 44 // Queries whether |cert| is allowed or denied for |host|. | 44 // Queries whether |cert| is allowed or denied for |host|. |
| 45 net::X509Certificate::Policy::Judgment QueryPolicy( | 45 net::CertPolicy::Judgment QueryPolicy( |
| 46 net::X509Certificate* cert, const std::string& host); | 46 net::X509Certificate* cert, const std::string& host); |
| 47 | 47 |
| 48 // Shows the pending messages (in info-bars) if any. | 48 // Shows the pending messages (in info-bars) if any. |
| 49 void ShowPendingMessages(); | 49 void ShowPendingMessages(); |
| 50 | 50 |
| 51 // Clears any pending messages. | 51 // Clears any pending messages. |
| 52 void ClearPendingMessages(); | 52 void ClearPendingMessages(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // SSLMessageInfo contains the information necessary for displaying a message | 55 // SSLMessageInfo contains the information necessary for displaying a message |
| (...skipping 28 matching lines...) Expand all Loading... |
| 84 SSLHostState* ssl_host_state_; | 84 SSLHostState* ssl_host_state_; |
| 85 | 85 |
| 86 // The list of messages that should be displayed (in info bars) when the page | 86 // The list of messages that should be displayed (in info bars) when the page |
| 87 // currently loading had loaded. | 87 // currently loading had loaded. |
| 88 std::vector<SSLMessageInfo> pending_messages_; | 88 std::vector<SSLMessageInfo> pending_messages_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicyBackend); | 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicyBackend); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ | 93 #endif // CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ |
| OLD | NEW |