OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. |
| 4 |
| 5 #ifndef WebSandboxFlags_h |
| 6 #define WebSandboxFlags_h |
| 7 |
| 8 #include "../platform/WebCommon.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox |
| 13 // for a list of the sandbox flags. This enum should be kept in sync with |
| 14 // Source/core/dom/SandboxFlags.h. Enforced in AssertMatchingEnums.cpp |
| 15 enum class WebSandboxFlags : int { |
| 16 None = 0, |
| 17 Navigation = 1, |
| 18 Plugins = 1 << 1, |
| 19 Origin = 1 << 2, |
| 20 Forms = 1 << 3, |
| 21 Scripts = 1 << 4, |
| 22 TopNavigation = 1 << 5, |
| 23 Popups = 1 << 6, |
| 24 AutomaticFeatures = 1 << 7, |
| 25 PointerLock = 1 << 8, |
| 26 DocumentDomain = 1 << 9, |
| 27 OrientationLock = 1 << 10, |
| 28 All = -1 |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif // WebSandboxFlags_h |
OLD | NEW |