- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / toolbar / toolbar_model_security_level_list.h
1 // Copyright (c) 2013 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 // Intentionally no include guards because this file is meant to be included
6 // inside a macro to generate enum values.
7
8 #ifndef DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL
9 #error "Please define DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL before including \
10   this file."
11 #endif
12
13 // HTTP/no URL/user is editing
14 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NONE, 0)
15
16 // HTTPS with valid EV cert
17 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(EV_SECURE, 1)
18
19 // HTTPS (non-EV)
20 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURE, 2)
21
22 // HTTPS, but unable to check certificate revocation status or with insecure
23 // content on the page
24 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_WARNING, 3)
25
26 // HTTPS, but the certificate verification chain is anchored on a certificate
27 // that was installed by the system administrator
28 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_POLICY_WARNING, 4)
29
30 // Attempted HTTPS and failed, page not authenticated
31 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_ERROR, 5)
32
33 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NUM_SECURITY_LEVELS, 6)