| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebSandboxFlags_h | 5 #ifndef WebSandboxFlags_h |
| 6 #define WebSandboxFlags_h | 6 #define WebSandboxFlags_h |
| 7 | 7 |
| 8 #include "../platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox | 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 | 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 | 14 // Source/core/dom/SandboxFlags.h. Enforced in AssertMatchingEnums.cpp |
| 15 enum class WebSandboxFlags : int { | 15 enum class WebSandboxFlags : int { |
| 16 kNone = 0, | 16 kNone = 0, |
| 17 kNavigation = 1, | 17 kNavigation = 1, |
| 18 kPlugins = 1 << 1, | 18 kPlugins = 1 << 1, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 44 return a = a | b; | 44 return a = a | b; |
| 45 } | 45 } |
| 46 | 46 |
| 47 inline WebSandboxFlags operator~(WebSandboxFlags flags) { | 47 inline WebSandboxFlags operator~(WebSandboxFlags flags) { |
| 48 return static_cast<WebSandboxFlags>(~static_cast<int>(flags)); | 48 return static_cast<WebSandboxFlags>(~static_cast<int>(flags)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace blink | 51 } // namespace blink |
| 52 | 52 |
| 53 #endif // WebSandboxFlags_h | 53 #endif // WebSandboxFlags_h |
| OLD | NEW |