diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-23 18:38:13 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-23 18:38:13 +0000 |
commit | 9143697300f15a47688bce3d39fdb7323f081717 (patch) | |
tree | ae26d313149be3830ca81f440778294c84bb55a6 /chrome/browser/tab_contents/security_style.h | |
parent | 663ef7cc6e7e83cbffbe8a9799b18b2864a7de45 (diff) | |
download | chromium_src-9143697300f15a47688bce3d39fdb7323f081717.zip chromium_src-9143697300f15a47688bce3d39fdb7323f081717.tar.gz chromium_src-9143697300f15a47688bce3d39fdb7323f081717.tar.bz2 |
Move security style into the tab_contents directory. This is the last part of
the "Tab Contents (old)" group!
Review URL: http://codereview.chromium.org/18686
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/security_style.h')
-rw-r--r-- | chrome/browser/tab_contents/security_style.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/security_style.h b/chrome/browser/tab_contents/security_style.h new file mode 100644 index 0000000..355401c --- /dev/null +++ b/chrome/browser/tab_contents/security_style.h @@ -0,0 +1,34 @@ +// Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_SECURITY_STYLE_H_ +#define CHROME_BROWSER_TAB_CONTENTS_SECURITY_STYLE_H_ + +// Various aspects of the UI change their appearance according to the security +// context in which they are displayed. For example, the location bar displays +// a lock icon when it is displayed during a valid SSL connection. +// SecuirtySyle enumerates these styles, but it is up to the UI elements to +// adjust their display appropriately. +enum SecurityStyle { + // SECURITY_STYLE_UNKNOWN indicates that we do not know the proper security + // style for this object. + SECURITY_STYLE_UNKNOWN, + + // SECURITY_STYLE_UNAUTHENTICATED means the authenticity of this object can + // not be determined, either because it was retrieved using an unauthenticated + // protocol, such as HTTP or FTP, or it was retrieved using a protocol that + // supports authentication, such as HTTPS, but there were errors during + // transmission that render us uncertain to the object's authenticity. + SECURITY_STYLE_UNAUTHENTICATED, + + // SECURITY_STYLE_AUTHENTICATION_BROKEN indicates that we tried to retrieve + // this object in an authenticated manner but were unable to do so. + SECURITY_STYLE_AUTHENTICATION_BROKEN, + + // SECURITY_STYLE_AUTHENTICATED indicates that we successfully retrieved this + // object over an authenticated protocol, such as HTTPS. + SECURITY_STYLE_AUTHENTICATED, +}; + +#endif // CHROME_BROWSER_TAB_CONTENTS_SECURITY_STYLE_H_ |