| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Returns whether the specified host was marked as broken. | 39 // Returns whether the specified host was marked as broken. |
| 40 bool DidMarkHostAsBroken(const std::string& host, int pid) const; | 40 bool DidMarkHostAsBroken(const std::string& host, int pid) const; |
| 41 | 41 |
| 42 // Sets the maximum security style for the page. If the current security | 42 // Sets the maximum security style for the page. If the current security |
| 43 // style is lower than |style|, this will not have an effect on the security | 43 // style is lower than |style|, this will not have an effect on the security |
| 44 // indicators. | 44 // indicators. |
| 45 // | 45 // |
| 46 // It will return true if the navigation entry was updated or false if | 46 // It will return true if the navigation entry was updated or false if |
| 47 // nothing changed. The caller is responsible for broadcasting | 47 // nothing changed. The caller is responsible for broadcasting |
| 48 // NOTIFY_SSY_STATE_CHANGED if it returns true. | 48 // NOTIFY_SSL_STATE_CHANGED if it returns true. |
| 49 bool SetMaxSecurityStyle(SecurityStyle style); | 49 bool SetMaxSecurityStyle(SecurityStyle style); |
| 50 | 50 |
| 51 // Logs a message to the console of the page. | 51 // Logs a message to the console of the page. |
| 52 void AddMessageToConsole(const string16& message, | 52 void AddMessageToConsole(const string16& message, |
| 53 const WebKit::WebConsoleMessage::Level&); | 53 const WebKit::WebConsoleMessage::Level&); |
| 54 | 54 |
| 55 // Records that |cert| is permitted to be used for |host| in the future. | 55 // Records that |cert| is permitted to be used for |host| in the future. |
| 56 void DenyCertForHost(net::X509Certificate* cert, const std::string& host); | 56 void DenyCertForHost(net::X509Certificate* cert, const std::string& host); |
| 57 | 57 |
| 58 // Records that |cert| is not permitted to be used for |host| in the future. | 58 // Records that |cert| is not permitted to be used for |host| in the future. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 SSLHostState* ssl_host_state_; | 113 SSLHostState* ssl_host_state_; |
| 114 | 114 |
| 115 // The list of messages that should be displayed (in info bars) when the page | 115 // The list of messages that should be displayed (in info bars) when the page |
| 116 // currently loading had loaded. | 116 // currently loading had loaded. |
| 117 std::vector<SSLMessageInfo> pending_messages_; | 117 std::vector<SSLMessageInfo> pending_messages_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(SSLPolicyBackend); | 119 DISALLOW_COPY_AND_ASSIGN(SSLPolicyBackend); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ | 122 #endif // CHROME_BROWSER_SSL_SSL_POLICY_BACKEND_H_ |
| OLD | NEW |