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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. Created 3 years, 10 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 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" 9 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // Represents a single Content Security Policy header (i.e. coming from 13 // Represents a single Content Security Policy header (i.e. coming from
14 // a single Content-Security-Policy header in an HTTP response, or from 14 // a single Content-Security-Policy header in an HTTP response, or from
15 // a single <meta http-equiv="Content-Security-Policy"...> element). 15 // a single <meta http-equiv="Content-Security-Policy"...> element).
16 struct ContentSecurityPolicyHeader { 16 struct ContentSecurityPolicyHeader {
17 std::string header_value; 17 std::string header_value;
18 blink::WebContentSecurityPolicyType type; 18 blink::WebContentSecurityPolicyType type;
19 blink::WebContentSecurityPolicySource source; 19 blink::WebContentSecurityPolicySource source;
20 }; 20 };
21 21
22 } // namespace content 22 } // namespace content
23 23
24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_ 24 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_HEADER_
OLDNEW
« no previous file with comments | « content/common/content_security_policy/csp_source_unittest.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698