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

Side by Side Diff: third_party/WebKit/public/web/WebRemoteFrameClient.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 | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | 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 WebRemoteFrameClient_h 5 #ifndef WebRemoteFrameClient_h
6 #define WebRemoteFrameClient_h 6 #define WebRemoteFrameClient_h
7 7
8 #include "public/platform/WebFocusType.h" 8 #include "public/platform/WebFocusType.h"
9 #include "public/platform/WebSecurityOrigin.h" 9 #include "public/platform/WebSecurityOrigin.h"
10 #include "public/web/WebContentSecurityPolicy.h"
10 #include "public/web/WebDOMMessageEvent.h" 11 #include "public/web/WebDOMMessageEvent.h"
11 #include "public/web/WebFrame.h" 12 #include "public/web/WebFrame.h"
12 13
13 namespace blink { 14 namespace blink {
14 class WebInputEvent; 15 class WebInputEvent;
15 enum class WebClientRedirectPolicy; 16 enum class WebClientRedirectPolicy;
16 enum class WebFrameLoadType; 17 enum class WebFrameLoadType;
17 struct WebRect; 18 struct WebRect;
18 19
19 class WebRemoteFrameClient { 20 class WebRemoteFrameClient {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // This frame updated its opener to another frame. 52 // This frame updated its opener to another frame.
52 virtual void didChangeOpener(WebFrame* opener) { } 53 virtual void didChangeOpener(WebFrame* opener) { }
53 54
54 // Continue sequential focus navigation in this frame. This is called when 55 // Continue sequential focus navigation in this frame. This is called when
55 // the |source| frame is searching for the next focusable element (e.g., in 56 // the |source| frame is searching for the next focusable element (e.g., in
56 // response to <tab>) and encounters a remote frame. 57 // response to <tab>) and encounters a remote frame.
57 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { } 58 virtual void advanceFocus(WebFocusType type, WebLocalFrame* source) { }
58 59
59 // This frame was focused by another frame. 60 // This frame was focused by another frame.
60 virtual void frameFocused() { } 61 virtual void frameFocused() { }
62
63 // Forwards a Content Security Policy violation from a frame proxy to the
64 // real frame.
65 virtual void forwardContentSecurityPolicyViolation(
66 const WebString& directiveText,
67 const WebString& effectiveDirective,
68 const WebString& consoleMessage,
69 const WebURL& blockedURL,
70 const WebVector<WebString>& reportEndpoints,
71 const WebString& header,
72 WebContentSecurityPolicyViolationType,
73 bool followedRedirect) {}
61 }; 74 };
62 75
63 } // namespace blink 76 } // namespace blink
64 77
65 #endif // WebRemoteFrameClient_h 78 #endif // WebRemoteFrameClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698