1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "wtf/text/WTFString.h"
12 class ContentSecurityPolicy;
16 WTF_MAKE_NONCOPYABLE(CSPDirective);
18 CSPDirective(const String& name, const String& value, ContentSecurityPolicy* policy)
20 , m_text(name + ' ' + value)
25 const String& text() const { return m_text; }
28 const ContentSecurityPolicy* policy() const { return m_policy; }
33 ContentSecurityPolicy* m_policy;