OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_FRAME_HOST_CSP_CONTEXT_IMPL_H_ | |
6 #define CONTENT_BROWSER_FRAME_HOST_CSP_CONTEXT_IMPL_H_ | |
7 | |
8 #include "content/common/content_security_policy/csp_context.h" | |
9 | |
10 namespace content { | |
11 | |
12 class FrameTreeNode; | |
13 | |
14 class CSPContextImpl : public CSPContext { | |
nasko
2017/02/15 21:28:44
Why do we need to subclass? Also, missing a class
arthursonzogni
2017/02/16 17:32:40
Because I have to implement the virtual methods
T
alexmos
2017/02/24 06:40:27
As an alternative to this, would it be easier if R
arthursonzogni
2017/02/24 16:13:29
Yes, it might be a good idea.
I am just a little b
alexmos
2017/03/01 02:22:28
Thanks for trying this out! On one hand, I like t
nasko
2017/03/03 23:16:53
I like the methods being folded into RFH and avoid
alexmos
2017/03/03 23:40:35
I like IsAllowedByCsp() - I think we can go with t
arthursonzogni
2017/03/06 15:09:02
Done.
| |
15 public: | |
16 CSPContextImpl(FrameTreeNode* frame_tree_node); | |
17 void LogToConsole(const std::string& message) override; | |
18 | |
19 // Inform the renderer process that a navigation has been blocked by a content | |
20 // security policy. | |
21 void ReportViolation(const CSPViolationParams& violation_params) override; | |
22 | |
23 private: | |
24 bool SchemeShouldBypassCSP(const base::StringPiece& scheme) override; | |
25 | |
26 // Never nullptr; | |
27 FrameTreeNode* frame_tree_node_; | |
28 }; | |
29 | |
30 } // namespace content | |
31 | |
32 #endif // CONTENT_BROWSER_FRAME_HOST_CSP_CONTEXT_IMPL_H_ */ | |
OLD | NEW |