| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONNECTION_SECURITY_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_ |
| 6 #define CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_ | 6 #define CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // certificate that was installed by the system administrator | 43 // certificate that was installed by the system administrator |
| 44 SECURITY_POLICY_WARNING, | 44 SECURITY_POLICY_WARNING, |
| 45 | 45 |
| 46 // Attempted HTTPS and failed, page not authenticated | 46 // Attempted HTTPS and failed, page not authenticated |
| 47 SECURITY_ERROR, | 47 SECURITY_ERROR, |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Returns a security level describing the overall security state of | 50 // Returns a security level describing the overall security state of |
| 51 // the given |WebContents|. | 51 // the given |WebContents|. |
| 52 static SecurityLevel GetSecurityLevelForWebContents( | 52 static SecurityLevel GetSecurityLevelForWebContents( |
| 53 content::WebContents* web_contents); | 53 const content::WebContents* web_contents); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 DISALLOW_IMPLICIT_CONSTRUCTORS(ConnectionSecurityHelper); | 56 DISALLOW_IMPLICIT_CONSTRUCTORS(ConnectionSecurityHelper); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_ | 59 #endif // CHROME_BROWSER_SSL_CONNECTION_SECURITY_HELPER_H_ |
| OLD | NEW |