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

Side by Side Diff: components/security_state/security_state_model.h

Issue 2346063002: Add new SecurityLevel for Http Bad state (Closed)
Patch Set: HTTP_WARNING -> HTTP_SHOW_WARNING Created 4 years, 3 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
OLDNEW
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 COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 5 #ifndef COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 // If you reorder, add, or delete values from this enum, you must also 32 // If you reorder, add, or delete values from this enum, you must also
33 // update the UI icons in ToolbarModelImpl::GetIconForSecurityLevel. 33 // update the UI icons in ToolbarModelImpl::GetIconForSecurityLevel.
34 // 34 //
35 // A Java counterpart will be generated for this enum. 35 // A Java counterpart will be generated for this enum.
36 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.security_state 36 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.security_state
37 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: ConnectionSecurityLevel 37 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: ConnectionSecurityLevel
38 enum SecurityLevel { 38 enum SecurityLevel {
39 // HTTP/no URL/HTTPS but with insecure passive content on the page. 39 // HTTP/no URL/HTTPS but with insecure passive content on the page.
40 NONE, 40 NONE,
41 41
42 // HTTP, in a case where we want to show a visible warning about the page's
43 // lack of security.
44 //
45 // The criteria used to classify pages as NONE vs. HTTP_SHOW_WARNING will
46 // change over time. Eventually, NONE will be eliminated.
47 // See https://crbug.com/647754.
48 HTTP_SHOW_WARNING,
49
42 // HTTPS with valid EV cert. 50 // HTTPS with valid EV cert.
43 EV_SECURE, 51 EV_SECURE,
44 52
45 // HTTPS (non-EV) with valid cert. 53 // HTTPS (non-EV) with valid cert.
46 SECURE, 54 SECURE,
47 55
48 // HTTPS, but with an outdated protocol version. 56 // HTTPS, but with an outdated protocol version.
49 SECURITY_WARNING, 57 SECURITY_WARNING,
50 58
51 // HTTPS, but the certificate verification chain is anchored on a 59 // HTTPS, but the certificate verification chain is anchored on a
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 mutable VisibleSecurityState visible_security_state_; 203 mutable VisibleSecurityState visible_security_state_;
196 204
197 SecurityStateModelClient* client_; 205 SecurityStateModelClient* client_;
198 206
199 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); 207 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel);
200 }; 208 };
201 209
202 } // namespace security_state 210 } // namespace security_state
203 211
204 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 212 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client.cc ('k') | components/security_state/security_state_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698