| 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 CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATIONS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/security_style_explanation.h" | 11 #include "content/public/browser/security_style_explanation.h" |
| 12 #include "content/public/common/security_style.h" | 12 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // SecurityStyleExplanations contains information about why a particular | 16 // SecurityStyleExplanations contains information about why a particular |
| 17 // SecurityStyle was chosen for a page. This information includes the | 17 // SecurityStyle was chosen for a page. This information includes the |
| 18 // mixed content status of the page and whether the page was loaded over | 18 // mixed content status of the page and whether the page was loaded over |
| 19 // a cryptographically secure transport. Additionally, | 19 // a cryptographically secure transport. Additionally, |
| 20 // SecurityStyleExplanations contains human-readable | 20 // SecurityStyleExplanations contains human-readable |
| 21 // SecurityStyleExplanation objects that the embedder can use to | 21 // SecurityStyleExplanation objects that the embedder can use to |
| 22 // describe embedder-specific security policies. Each | 22 // describe embedder-specific security policies. Each |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 bool displayed_content_with_cert_errors; | 45 bool displayed_content_with_cert_errors; |
| 46 | 46 |
| 47 // The SecurityStyle assigned to a page that runs or displays insecure | 47 // The SecurityStyle assigned to a page that runs or displays insecure |
| 48 // content, respectively. Insecure content can be either HTTP | 48 // content, respectively. Insecure content can be either HTTP |
| 49 // subresources loaded on an HTTPS page (mixed content), or HTTPS | 49 // subresources loaded on an HTTPS page (mixed content), or HTTPS |
| 50 // subresources loaded with certificate errors on an HTTPS page. | 50 // subresources loaded with certificate errors on an HTTPS page. |
| 51 // | 51 // |
| 52 // These values are used to convey the effect | 52 // These values are used to convey the effect |
| 53 // that insecure content has on the overall SecurityStyle of the page; | 53 // that insecure content has on the overall SecurityStyle of the page; |
| 54 // for example, a |displayed_insecure_content_style| value of | 54 // for example, a |displayed_insecure_content_style| value of |
| 55 // SECURITY_STYLE_UNAUTHENTICATED indicates that the page's overall | 55 // WebSecurityStyleUnauthenticated indicates that the page's overall |
| 56 // SecurityStyle will be downgraded to UNAUTHENTICATED as a result of | 56 // SecurityStyle will be downgraded to Unauthenticated as a result of |
| 57 // displaying insecure content. | 57 // displaying insecure content. |
| 58 SecurityStyle ran_insecure_content_style; | 58 blink::WebSecurityStyle ran_insecure_content_style; |
| 59 SecurityStyle displayed_insecure_content_style; | 59 blink::WebSecurityStyle displayed_insecure_content_style; |
| 60 | 60 |
| 61 bool scheme_is_cryptographic; | 61 bool scheme_is_cryptographic; |
| 62 | 62 |
| 63 // True if PKP was bypassed due to a local trust anchor. | 63 // True if PKP was bypassed due to a local trust anchor. |
| 64 bool pkp_bypassed; | 64 bool pkp_bypassed; |
| 65 | 65 |
| 66 // Explanations corresponding to each security level. The embedder should | 66 // Explanations corresponding to each security level. The embedder should |
| 67 // display explanations in the order: broken, unauthenticated, secure, info. | 67 // display explanations in the order: broken, unauthenticated, secure, info. |
| 68 std::vector<SecurityStyleExplanation> secure_explanations; | 68 std::vector<SecurityStyleExplanation> secure_explanations; |
| 69 std::vector<SecurityStyleExplanation> unauthenticated_explanations; | 69 std::vector<SecurityStyleExplanation> unauthenticated_explanations; |
| 70 std::vector<SecurityStyleExplanation> broken_explanations; | 70 std::vector<SecurityStyleExplanation> broken_explanations; |
| 71 std::vector<SecurityStyleExplanation> info_explanations; | 71 std::vector<SecurityStyleExplanation> info_explanations; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace content | 74 } // namespace content |
| 75 | 75 |
| 76 #endif // CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_ | 76 #endif // CONTENT_PUBLIC_BROWSER_SECURITY_STYLE_EXPLANATION_H_ |
| OLD | NEW |