Index: third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.h b/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..066b4c375adc31c106d7e983c71c08488e5bccd3 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
iclelland
2017/02/08 15:06:24
2017
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef HTMLIFrameElementAllow_h |
+#define HTMLIFrameElementAllow_h |
+ |
+#include "WebFeaturePolicyFeatureHash.h" |
+#include "core/CoreExport.h" |
+#include "core/dom/DOMTokenList.h" |
+#include "platform/heap/Handle.h" |
+#include "public/platform/WebFeaturePolicy.h" |
+ |
+namespace blink { |
+ |
+class HTMLIFrameElement; |
+ |
+class CORE_EXPORT HTMLIFrameElementAllow final : public DOMTokenList, |
+ public DOMTokenListObserver { |
+ USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementAllow); |
+ |
+ public: |
+ static HTMLIFrameElementAllow* create(HTMLIFrameElement* element) { |
+ return new HTMLIFrameElementAllow(element); |
+ } |
+ |
+ ~HTMLIFrameElementAllow() override; |
+ |
+ HashSet<WebFeaturePolicyFeature> parseAllowedFeatureNames( |
+ String& invalidTokensErrorMessage) const; |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+ private: |
+ explicit HTMLIFrameElementAllow(HTMLIFrameElement*); |
+ bool validateTokenValue(const AtomicString&, ExceptionState&) const override; |
+ |
+ // DOMTokenListObserver. |
+ void valueWasSet() override; |
+ |
+ Member<HTMLIFrameElement> m_element; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // HTMLIFrameElementAllow_h |