| 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..6ba605cf44e8275b0052e998d2733207c3650fb4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2017 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 HTMLIFrameElementAllow_h
|
| +#define HTMLIFrameElementAllow_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
|
|
|