OLD | NEW |
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 Loading... |
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 |
OLD | NEW |