summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h')
-rw-r--r--chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h b/chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h
deleted file mode 100644
index dca41c37754..00000000000
--- a/chromium/third_party/blink/renderer/core/frame/csp/string_list_directive.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2018 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_STRING_LIST_DIRECTIVE_H_
-#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_CSP_STRING_LIST_DIRECTIVE_H_
-
-#include "base/macros.h"
-#include "third_party/blink/renderer/core/frame/csp/csp_directive.h"
-#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
-
-namespace blink {
-
-class ContentSecurityPolicy;
-
-class CORE_EXPORT StringListDirective final : public CSPDirective {
- public:
- StringListDirective(const String& name,
- const String& value,
- ContentSecurityPolicy*);
- void Trace(Visitor*) const override;
- bool Allows(const String& string_piece, bool is_duplicate);
- bool IsAllowDuplicates() const { return allow_duplicates_; }
-
- private:
- // Determine whether a given string is a valid policy name or a special token
- // ("*" or "'allow-duplicates'"). In the token case, set the appropriate flags
- // as a side effect.
- bool AllowOrProcessValue(const String& src);
-
- static bool IsPolicyName(const String& name);
- static bool IsNotPolicyNameChar(UChar c);
-
- Vector<String> list_;
- bool allow_any_;
- bool allow_duplicates_;
-};
-
-} // namespace blink
-
-#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_CSP_STRING_LIST_DIRECTIVE_H_