OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 // Intentionally no include guards because this file is meant to be included | 5 // Intentionally no include guards because this file is meant to be included |
6 // inside a macro to generate enum values. | 6 // inside a macro to generate enum values. |
7 | 7 |
8 #ifndef DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL | 8 #ifndef DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL |
9 #error "Please define DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL before including \ | 9 #error "Please define DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL before including \ |
10 this file." | 10 this file." |
11 #endif | 11 #endif |
12 | 12 |
13 // HTTP/no URL/user is editing | 13 // HTTP/no URL/user is editing |
14 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NONE, 0) | 14 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NONE, 0) |
15 | 15 |
16 // HTTPS with valid EV cert | 16 // HTTPS with valid EV cert |
17 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(EV_SECURE, 1) | 17 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(EV_SECURE, 1) |
18 | 18 |
19 // HTTPS (non-EV) | 19 // HTTPS (non-EV) |
20 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURE, 2) | 20 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURE, 2) |
21 | 21 |
22 // HTTPS, but unable to check certificate revocation status or with insecure | 22 // HTTPS, but unable to check certificate revocation status or with insecure |
23 // content on the page | 23 // content on the page |
24 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_WARNING, 3) | 24 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_WARNING, 3) |
25 | 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 |
26 // Attempted HTTPS and failed, page not authenticated | 30 // Attempted HTTPS and failed, page not authenticated |
27 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_ERROR, 4) | 31 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_ERROR, 5) |
28 | 32 |
29 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NUM_SECURITY_LEVELS, 5) | 33 DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NUM_SECURITY_LEVELS, 6) |
OLD | NEW |