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

Side by Side Diff: content/renderer/render_frame_proxy.h

Issue 2190183002: Forward CSP violation reporting from RenderFrameProxy to RenderFrameImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sanitize report endpoints from IPC against actual CSP contents. Created 4 years, 4 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_RENDERER_RENDER_FRAME_PROXY_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void initializeChildFrame(float scale_factor) override; 134 void initializeChildFrame(float scale_factor) override;
135 void navigate(const blink::WebURLRequest& request, 135 void navigate(const blink::WebURLRequest& request,
136 bool should_replace_current_entry) override; 136 bool should_replace_current_entry) override;
137 void forwardInputEvent(const blink::WebInputEvent* event) override; 137 void forwardInputEvent(const blink::WebInputEvent* event) override;
138 void frameRectsChanged(const blink::WebRect& frame_rect) override; 138 void frameRectsChanged(const blink::WebRect& frame_rect) override;
139 void visibilityChanged(bool visible) override; 139 void visibilityChanged(bool visible) override;
140 void didChangeOpener(blink::WebFrame* opener) override; 140 void didChangeOpener(blink::WebFrame* opener) override;
141 void advanceFocus(blink::WebFocusType type, 141 void advanceFocus(blink::WebFocusType type,
142 blink::WebLocalFrame* source) override; 142 blink::WebLocalFrame* source) override;
143 void frameFocused() override; 143 void frameFocused() override;
144 void forwardContentSecurityPolicyViolation(
145 const blink::WebString& directiveText,
146 const blink::WebString& effectiveDirective,
147 const blink::WebString& consoleMessage,
148 const blink::WebURL& blockedURL,
149 const blink::WebVector<blink::WebString>& reportEndpoints,
150 const blink::WebString& header,
151 blink::WebContentSecurityPolicyViolationType,
152 bool followedRedirect) override;
144 153
145 // IPC handlers 154 // IPC handlers
146 void OnDidStartLoading(); 155 void OnDidStartLoading();
147 156
148 private: 157 private:
149 RenderFrameProxy(int routing_id, int frame_routing_id); 158 RenderFrameProxy(int routing_id, int frame_routing_id);
150 159
151 void Init(blink::WebRemoteFrame* frame, 160 void Init(blink::WebRemoteFrame* frame,
152 RenderViewImpl* render_view, 161 RenderViewImpl* render_view,
153 RenderWidget* render_widget); 162 RenderWidget* render_widget);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 200
192 RenderViewImpl* render_view_; 201 RenderViewImpl* render_view_;
193 RenderWidget* render_widget_; 202 RenderWidget* render_widget_;
194 203
195 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); 204 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy);
196 }; 205 };
197 206
198 } // namespace 207 } // namespace
199 208
200 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 209 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698