| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/common/content_export.h" | |
| 10 #include "content/public/common/security_style.h" | |
| 11 #include "net/base/cert_status_flags.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 // Collects the SSL information for this NavigationEntry. | |
| 16 struct CONTENT_EXPORT SSLStatus { | |
| 17 // Flags used for the page security content status. | |
| 18 enum ContentStatusFlags { | |
| 19 // HTTP page, or HTTPS page with no insecure content. | |
| 20 NORMAL_CONTENT = 0, | |
| 21 | |
| 22 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS). | |
| 23 DISPLAYED_INSECURE_CONTENT = 1 << 0, | |
| 24 | |
| 25 // HTTPS page containing "executed" HTTP resources (i.e. script). | |
| 26 // Also currently used for HTTPS page containing broken-HTTPS resources; | |
| 27 // this is wrong and should be fixed (see comments in | |
| 28 // SSLPolicy::OnRequestStarted()). | |
| 29 RAN_INSECURE_CONTENT = 1 << 1, | |
| 30 }; | |
| 31 | |
| 32 SSLStatus(); | |
| 33 | |
| 34 bool Equals(const SSLStatus& status) const { | |
| 35 return security_style == status.security_style && | |
| 36 cert_id == status.cert_id && | |
| 37 cert_status == status.cert_status && | |
| 38 security_bits == status.security_bits && | |
| 39 content_status == status.content_status; | |
| 40 } | |
| 41 | |
| 42 content::SecurityStyle security_style; | |
| 43 int cert_id; | |
| 44 net::CertStatus cert_status; | |
| 45 int security_bits; | |
| 46 int connection_status; | |
| 47 // A combination of the ContentStatusFlags above. | |
| 48 int content_status; | |
| 49 | |
| 50 // Copy and assignment is explicitly allowed for this class. | |
| 51 }; | |
| 52 | |
| 53 } // namespace content | |
| 54 | |
| 55 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | |
| OLD | NEW |