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

Side by Side Diff: content/public/common/security_style.h

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: more curly braces Created 4 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
OLDNEW
(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_COMMON_SECURITY_STYLE_H_
6 #define CONTENT_PUBLIC_COMMON_SECURITY_STYLE_H_
7
8 namespace content {
9
10 // Various aspects of the UI change their appearance according to the security
11 // context in which they are displayed. For example, the location bar displays
12 // a lock icon when it is displayed during a valid SSL connection.
13 // SecuritySyle enumerates these styles, but it is up to the UI elements to
14 // adjust their display appropriately.
15 enum SecurityStyle {
16 // SECURITY_STYLE_UNKNOWN indicates that we do not know the proper security
17 // style for this object.
18 SECURITY_STYLE_UNKNOWN,
19
20 // SECURITY_STYLE_UNAUTHENTICATED means the authenticity of this object can
21 // not be determined, either because it was retrieved using an unauthenticated
22 // protocol, such as HTTP or FTP, or it was retrieved using a protocol that
23 // supports authentication, such as HTTPS, but there were errors during
24 // transmission that render us uncertain to the object's authenticity.
25 SECURITY_STYLE_UNAUTHENTICATED,
26
27 // SECURITY_STYLE_AUTHENTICATION_BROKEN indicates that we tried to retrieve
28 // this object in an authenticated manner but were unable to do so.
29 SECURITY_STYLE_AUTHENTICATION_BROKEN,
30
31 // SECURITY_STYLE_WARNING means that the object was retrieved in an
32 // authenticated manner, but there were security issues with the retrieval or
33 // the object interacted with less secure objects.
34 SECURITY_STYLE_WARNING,
35
36 // SECURITY_STYLE_AUTHENTICATED indicates that we successfully retrieved this
37 // object over an authenticated protocol, such as HTTPS.
38 SECURITY_STYLE_AUTHENTICATED,
39 SECURITY_STYLE_LAST = SECURITY_STYLE_AUTHENTICATED
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_PUBLIC_COMMON_SECURITY_STYLE_H_
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | ios/chrome/browser/ssl/ios_chrome_security_state_model_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698