Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: content/common/content_security_policy_header.h

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ 5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ 6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
7 7
8 #include <string> 8 #include <string>
9
10 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" 11 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h"
10 12
11 namespace content { 13 namespace content {
12 14
13 // Represents a single Content Security Policy header (i.e. coming from 15 // Represents a single Content Security Policy header (i.e. coming from
14 // a single Content-Security-Policy header in an HTTP response, or from 16 // a single Content-Security-Policy header in an HTTP response, or from
15 // a single <meta http-equiv="Content-Security-Policy"...> element). 17 // a single <meta http-equiv="Content-Security-Policy"...> element).
16 struct ContentSecurityPolicyHeader { 18 struct CONTENT_EXPORT ContentSecurityPolicyHeader {
19 ContentSecurityPolicyHeader();
20 ContentSecurityPolicyHeader(const std::string& header_value,
21 blink::WebContentSecurityPolicyType type,
22 blink::WebContentSecurityPolicySource source);
23
17 std::string header_value; 24 std::string header_value;
18 blink::WebContentSecurityPolicyType type; 25 blink::WebContentSecurityPolicyType type;
19 blink::WebContentSecurityPolicySource source; 26 blink::WebContentSecurityPolicySource source;
20 }; 27 };
21 28
22 } // namespace content 29 } // namespace content
23 30
24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ 31 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
OLDNEW
« no previous file with comments | « content/common/content_security_policy/csp_context_unittest.cc ('k') | content/common/content_security_policy_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698