| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SandboxPointerLock = 1 << 8, | 48 SandboxPointerLock = 1 << 8, |
| 49 SandboxDocumentDomain = 1 << 9, | 49 SandboxDocumentDomain = 1 << 9, |
| 50 // See | 50 // See |
| 51 // https://w3c.github.io/screen-orientation/#dfn-sandboxed-orientation-lock-br
owsing-context-flag. | 51 // https://w3c.github.io/screen-orientation/#dfn-sandboxed-orientation-lock-br
owsing-context-flag. |
| 52 SandboxOrientationLock = 1 << 10, | 52 SandboxOrientationLock = 1 << 10, |
| 53 SandboxPropagatesToAuxiliaryBrowsingContexts = 1 << 11, | 53 SandboxPropagatesToAuxiliaryBrowsingContexts = 1 << 11, |
| 54 SandboxModals = 1 << 12, | 54 SandboxModals = 1 << 12, |
| 55 // See | 55 // See |
| 56 // https://w3c.github.io/presentation-api/#sandboxing-and-the-allow-presentati
on-keyword | 56 // https://w3c.github.io/presentation-api/#sandboxing-and-the-allow-presentati
on-keyword |
| 57 SandboxPresentation = 1 << 13, | 57 SandboxPresentation = 1 << 13, |
| 58 // See https://github.com/WICG/interventions/issues/42. |
| 59 SandboxTopNavigationWithUserActivation = 1 << 14, |
| 58 SandboxAll = -1 // Mask with all bits set to 1. | 60 SandboxAll = -1 // Mask with all bits set to 1. |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 typedef int SandboxFlags; | 63 typedef int SandboxFlags; |
| 62 | 64 |
| 63 SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, | 65 SandboxFlags parseSandboxPolicy(const SpaceSplitString& policy, |
| 64 String& invalidTokensErrorMessage); | 66 String& invalidTokensErrorMessage); |
| 65 | 67 |
| 66 } // namespace blink | 68 } // namespace blink |
| 67 | 69 |
| 68 #endif | 70 #endif |
| OLD | NEW |