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;
15 WTF_MAKE_NONCOPYABLE(CSPDirective);
17 CSPDirective(const String& name, const String& value, ContentSecurityPolicy* policy)
19 , m_text(name + ' ' + value)
24 const String& text() const { return m_text; }
27 ContentSecurityPolicy* policy() const { return m_policy; }
32 ContentSecurityPolicy* m_policy;