summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/frame/csp/require_trusted_types_for_directive.h
blob: cdba8df6b6533a94aae3e50ccf0480ede93f72b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2020 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_FRAME_CSP_REQUIRE_TRUSTED_TYPES_FOR_DIRECTIVE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_CSP_REQUIRE_TRUSTED_TYPES_FOR_DIRECTIVE_H_

#include "third_party/blink/renderer/core/frame/csp/csp_directive.h"

namespace blink {

class ContentSecurityPolicy;

class CORE_EXPORT RequireTrustedTypesForDirective final : public CSPDirective {
 public:
  RequireTrustedTypesForDirective(const String& name,
                                  const String& value,
                                  ContentSecurityPolicy*);
  void Trace(Visitor*) const override;
  bool require() const;

 private:
  bool require_trusted_types_for_script_;
};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_CSP_REQUIRE_TRUSTED_TYPES_FOR_DIRECTIVE_H_