| 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 24 matching lines...) Expand all Loading... |
| 35 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbo
x for a list of the sandbox flags. | 35 // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbo
x for a list of the sandbox flags. |
| 36 SandboxNone = 0, | 36 SandboxNone = 0, |
| 37 SandboxNavigation = 1, | 37 SandboxNavigation = 1, |
| 38 SandboxPlugins = 1 << 1, | 38 SandboxPlugins = 1 << 1, |
| 39 SandboxOrigin = 1 << 2, | 39 SandboxOrigin = 1 << 2, |
| 40 SandboxForms = 1 << 3, | 40 SandboxForms = 1 << 3, |
| 41 SandboxScripts = 1 << 4, | 41 SandboxScripts = 1 << 4, |
| 42 SandboxTopNavigation = 1 << 5, | 42 SandboxTopNavigation = 1 << 5, |
| 43 SandboxPopups = 1 << 6, // See https://www.w3.org/Bugs/Public/show_bug.cgi?i
d=12393 | 43 SandboxPopups = 1 << 6, // See https://www.w3.org/Bugs/Public/show_bug.cgi?i
d=12393 |
| 44 SandboxAutomaticFeatures = 1 << 7, | 44 SandboxAutomaticFeatures = 1 << 7, |
| 45 SandboxSeamlessIframes = 1 << 8, | 45 SandboxPointerLock = 1 << 8, |
| 46 SandboxPointerLock = 1 << 9, | 46 SandboxDocumentDomain = 1 << 9, |
| 47 SandboxDocumentDomain = 1 << 10, | |
| 48 SandboxAll = -1 // Mask with all bits set to 1. | 47 SandboxAll = -1 // Mask with all bits set to 1. |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 typedef int SandboxFlags; | 50 typedef int SandboxFlags; |
| 52 | 51 |
| 53 SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensError
Message); | 52 SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensError
Message); |
| 54 | 53 |
| 55 } | 54 } |
| 56 | 55 |
| 57 #endif | 56 #endif |
| OLD | NEW |