// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_SECURITY_PROTOCOL_HANDLER_SECURITY_LEVEL_H_ #define THIRD_PARTY_BLINK_PUBLIC_COMMON_SECURITY_PROTOCOL_HANDLER_SECURITY_LEVEL_H_ namespace blink { // Levels of security used for Navigator's (un)registerProtocolHandler. // This is an increasing hierarchy, starting from the default HTML5 behavior and // for which each higher level removes a security restriction. enum class ProtocolHandlerSecurityLevel { … }; inline ProtocolHandlerSecurityLevel ProtocolHandlerSecurityLevelFrom( int security_level) { … } } // namespace blink #endif // THIRD_PARTY_BLINK_PUBLIC_COMMON_SECURITY_PROTOCOL_HANDLER_SECURITY_LEVEL_H_