Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: ios/web/public/ssl_status.h

Issue 640253007: Adds additional fields to web::NavigationItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/public/security_style.h ('k') | ios/web/public/ssl_status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 IOS_WEB_PUBLIC_SSL_STATUS_H_
6 #define IOS_WEB_PUBLIC_SSL_STATUS_H_
7
8 #include "ios/web/public/security_style.h"
9 #include "net/cert/cert_status_flags.h"
10
11 namespace web {
12
13 // Collects the SSL information for this NavigationItem.
14 struct SSLStatus {
15 // Flags used for the page security content status.
16 enum ContentStatusFlags {
17 // HTTP page, or HTTPS page with no insecure content.
18 NORMAL_CONTENT = 0,
19
20 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS).
21 DISPLAYED_INSECURE_CONTENT = 1 << 0,
22
23 // The RAN_INSECURE_CONTENT flag is intentionally omitted on iOS because
24 // there is no way to tell when insecure content is run in a web view.
25 };
26
27 SSLStatus();
28 ~SSLStatus();
29
30 bool Equals(const SSLStatus& status) const {
31 return security_style == status.security_style &&
32 cert_id == status.cert_id &&
33 cert_status == status.cert_status &&
34 security_bits == status.security_bits &&
35 content_status == status.content_status;
36 }
37
38 web::SecurityStyle security_style;
39 int cert_id;
40 net::CertStatus cert_status;
41 int security_bits;
42 int connection_status;
43 // A combination of the ContentStatusFlags above.
44 int content_status;
45 };
46
47 } // namespace web
48
49 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_
OLDNEW
« no previous file with comments | « ios/web/public/security_style.h ('k') | ios/web/public/ssl_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698