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

Side by Side Diff: content/common/content_security_policy/csp_policy.h

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Addressed comments(alexmos@ and nasko@) 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_CSP_POLICY_H_ 5 #ifndef CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ 6 #define CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 private: 42 private:
43 bool AllowDirective(CSPContext* context, 43 bool AllowDirective(CSPContext* context,
44 CSPDirective::Name directive_name, 44 CSPDirective::Name directive_name,
45 const CSPDirective& directive, 45 const CSPDirective& directive,
46 const GURL& url, 46 const GURL& url,
47 bool is_redirect) const; 47 bool is_redirect) const;
48 48
49 void ReportViolation(CSPContext* context, 49 void ReportViolation(CSPContext* context,
50 const CSPDirective::Name effective_directive, 50 const CSPDirective::Name effective_directive,
51 const CSPDirective& directive, 51 const CSPDirective& directive,
52 const GURL& url) const; 52 const GURL& url,
53 bool is_redirect) const;
53 }; 54 };
54 55
55 } // namespace content 56 } // namespace content
56 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_ 57 #endif // CONTENT_COMMON_CONTENT_SECURITY_POLICY_CSP_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698