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 14DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NONE, 0) 15 16// HTTPS with valid EV cert 17DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(EV_SECURE, 1) 18 19// HTTPS (non-EV) 20DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURE, 2) 21 22// HTTPS, but unable to check certificate revocation status or with insecure 23// content on the page 24DEFINE_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 28DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_POLICY_WARNING, 4) 29 30// Attempted HTTPS and failed, page not authenticated 31DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(SECURITY_ERROR, 5) 32 33DEFINE_TOOLBAR_MODEL_SECURITY_LEVEL(NUM_SECURITY_LEVELS, 6) 34