Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: public/web/WebSandboxFlags.h

Issue 793493003: Prepare to replicate sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Second round of dcheng's comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebRemoteFrame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSandboxFlags.h
diff --git a/public/web/WebSandboxFlags.h b/public/web/WebSandboxFlags.h
new file mode 100644
index 0000000000000000000000000000000000000000..48e477cf68691ad98df9ad417031327710475341
--- /dev/null
+++ b/public/web/WebSandboxFlags.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be found
+// in the LICENSE file.
+
+#ifndef WebSandboxFlags_h
+#define WebSandboxFlags_h
+
+#include "../platform/WebCommon.h"
+
+namespace blink {
+
+// See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox
+// for a list of the sandbox flags. This enum should be kept in sync with
+// Source/core/dom/SandboxFlags.h. Enforced in AssertMatchingEnums.cpp
+enum class WebSandboxFlags : int {
+ None = 0,
+ Navigation = 1,
+ Plugins = 1 << 1,
+ Origin = 1 << 2,
+ Forms = 1 << 3,
+ Scripts = 1 << 4,
+ TopNavigation = 1 << 5,
+ Popups = 1 << 6,
+ AutomaticFeatures = 1 << 7,
+ PointerLock = 1 << 8,
+ DocumentDomain = 1 << 9,
+ OrientationLock = 1 << 10,
+ All = -1
+};
+
+} // namespace blink
+
+#endif // WebSandboxFlags_h
« no previous file with comments | « public/web/WebRemoteFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698