| // Copyright 2016 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 THIRD_PARTY_BLINK_RENDERER_CORE_HTML_HTML_IFRAME_ELEMENT_SANDBOX_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_HTML_IFRAME_ELEMENT_SANDBOX_H_ |
| |
| #include "third_party/blink/renderer/core/dom/dom_token_list.h" |
| #include "third_party/blink/renderer/platform/heap/handle.h" |
| |
| namespace blink { |
| |
| class HTMLIFrameElement; |
| |
| class HTMLIFrameElementSandbox final : public DOMTokenList { |
| public: |
| static HTMLIFrameElementSandbox* Create(HTMLIFrameElement* element) { |
| return MakeGarbageCollected<HTMLIFrameElementSandbox>(element); |
| } |
| |
| explicit HTMLIFrameElementSandbox(HTMLIFrameElement*); |
| |
| private: |
| bool ValidateTokenValue(const AtomicString&, ExceptionState&) const override; |
| }; |
| |
| } // namespace blink |
| |
| #endif |