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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/ssl_status.h
diff --git a/ios/web/public/ssl_status.h b/ios/web/public/ssl_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..56f3d11fc3d8432ad3336fa06c671c37f30fb2ef
--- /dev/null
+++ b/ios/web/public/ssl_status.h
@@ -0,0 +1,49 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_SSL_STATUS_H_
+#define IOS_WEB_PUBLIC_SSL_STATUS_H_
+
+#include "ios/web/public/security_style.h"
+#include "net/cert/cert_status_flags.h"
+
+namespace web {
+
+// Collects the SSL information for this NavigationItem.
+struct SSLStatus {
+ // Flags used for the page security content status.
+ enum ContentStatusFlags {
+ // HTTP page, or HTTPS page with no insecure content.
+ NORMAL_CONTENT = 0,
+
+ // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS).
+ DISPLAYED_INSECURE_CONTENT = 1 << 0,
+
+ // The RAN_INSECURE_CONTENT flag is intentionally omitted on iOS because
+ // there is no way to tell when insecure content is run in a web view.
+ };
+
+ SSLStatus();
+ ~SSLStatus();
+
+ bool Equals(const SSLStatus& status) const {
+ return security_style == status.security_style &&
+ cert_id == status.cert_id &&
+ cert_status == status.cert_status &&
+ security_bits == status.security_bits &&
+ content_status == status.content_status;
+ }
+
+ web::SecurityStyle security_style;
+ int cert_id;
+ net::CertStatus cert_status;
+ int security_bits;
+ int connection_status;
+ // A combination of the ContentStatusFlags above.
+ int content_status;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_SSL_STATUS_H_
« 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