15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef CONTENT_PUBLIC_COMMON_SECURITY_STYLE_H_ 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_PUBLIC_COMMON_SECURITY_STYLE_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace content { 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Various aspects of the UI change their appearance according to the security 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// context in which they are displayed. For example, the location bar displays 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a lock icon when it is displayed during a valid SSL connection. 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SecuritySyle enumerates these styles, but it is up to the UI elements to 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// adjust their display appropriately. 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)enum SecurityStyle { 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // SECURITY_STYLE_UNKNOWN indicates that we do not know the proper security 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // style for this object. 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) SECURITY_STYLE_UNKNOWN, 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // SECURITY_STYLE_UNAUTHENTICATED means the authenticity of this object can 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // not be determined, either because it was retrieved using an unauthenticated 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // protocol, such as HTTP or FTP, or it was retrieved using a protocol that 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // supports authentication, such as HTTPS, but there were errors during 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // transmission that render us uncertain to the object's authenticity. 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) SECURITY_STYLE_UNAUTHENTICATED, 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // SECURITY_STYLE_AUTHENTICATION_BROKEN indicates that we tried to retrieve 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // this object in an authenticated manner but were unable to do so. 295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) SECURITY_STYLE_AUTHENTICATION_BROKEN, 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // SECURITY_STYLE_AUTHENTICATED indicates that we successfully retrieved this 325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // object over an authenticated protocol, such as HTTPS. 335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) SECURITY_STYLE_AUTHENTICATED, 345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}; 355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // namespace content 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif // CONTENT_PUBLIC_COMMON_SECURITY_STYLE_H_ 39