OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrameClient_h | 31 #ifndef WebFrameClient_h |
32 #define WebFrameClient_h | 32 #define WebFrameClient_h |
33 | 33 |
| 34 #include <v8.h> |
34 #include "../platform/WebColor.h" | 35 #include "../platform/WebColor.h" |
35 #include "WebAXObject.h" | 36 #include "WebAXObject.h" |
36 #include "WebDOMMessageEvent.h" | 37 #include "WebDOMMessageEvent.h" |
37 #include "WebDataSource.h" | 38 #include "WebDataSource.h" |
38 #include "WebFileChooserParams.h" | 39 #include "WebFileChooserParams.h" |
39 #include "WebFormElement.h" | 40 #include "WebFormElement.h" |
40 #include "WebFrame.h" | 41 #include "WebFrame.h" |
41 #include "WebFrameOwnerProperties.h" | 42 #include "WebFrameOwnerProperties.h" |
42 #include "WebHistoryCommitType.h" | 43 #include "WebHistoryCommitType.h" |
43 #include "WebHistoryItem.h" | 44 #include "WebHistoryItem.h" |
44 #include "WebIconURL.h" | 45 #include "WebIconURL.h" |
45 #include "WebNavigationPolicy.h" | 46 #include "WebNavigationPolicy.h" |
46 #include "WebNavigationType.h" | 47 #include "WebNavigationType.h" |
47 #include "WebNavigatorContentUtilsClient.h" | 48 #include "WebNavigatorContentUtilsClient.h" |
48 #include "WebSandboxFlags.h" | 49 #include "WebSandboxFlags.h" |
49 #include "WebTextDirection.h" | 50 #include "WebTextDirection.h" |
50 #include "public/platform/BlameContext.h" | 51 #include "public/platform/BlameContext.h" |
51 #include "public/platform/WebCommon.h" | 52 #include "public/platform/WebCommon.h" |
| 53 #include "public/platform/WebContentSecurityPolicyStruct.h" |
52 #include "public/platform/WebEffectiveConnectionType.h" | 54 #include "public/platform/WebEffectiveConnectionType.h" |
53 #include "public/platform/WebFeaturePolicy.h" | 55 #include "public/platform/WebFeaturePolicy.h" |
54 #include "public/platform/WebFileSystem.h" | 56 #include "public/platform/WebFileSystem.h" |
55 #include "public/platform/WebFileSystemType.h" | 57 #include "public/platform/WebFileSystemType.h" |
56 #include "public/platform/WebInsecureRequestPolicy.h" | 58 #include "public/platform/WebInsecureRequestPolicy.h" |
57 #include "public/platform/WebLoadingBehaviorFlag.h" | 59 #include "public/platform/WebLoadingBehaviorFlag.h" |
58 #include "public/platform/WebPageVisibilityState.h" | 60 #include "public/platform/WebPageVisibilityState.h" |
59 #include "public/platform/WebSecurityOrigin.h" | 61 #include "public/platform/WebSecurityOrigin.h" |
60 #include "public/platform/WebSetSinkIdCallbacks.h" | 62 #include "public/platform/WebSetSinkIdCallbacks.h" |
61 #include "public/platform/WebStorageQuotaCallbacks.h" | 63 #include "public/platform/WebStorageQuotaCallbacks.h" |
62 #include "public/platform/WebStorageQuotaType.h" | 64 #include "public/platform/WebStorageQuotaType.h" |
63 #include "public/platform/WebURLError.h" | 65 #include "public/platform/WebURLError.h" |
64 #include "public/platform/WebURLRequest.h" | 66 #include "public/platform/WebURLRequest.h" |
65 #include "public/web/WebContentSecurityPolicy.h" | |
66 #include <v8.h> | |
67 | 67 |
68 namespace blink { | 68 namespace blink { |
69 | 69 |
70 enum class WebTreeScopeType; | 70 enum class WebTreeScopeType; |
71 class WebApplicationCacheHost; | 71 class WebApplicationCacheHost; |
72 class WebApplicationCacheHostClient; | 72 class WebApplicationCacheHostClient; |
73 class WebColorChooser; | 73 class WebColorChooser; |
74 class WebColorChooserClient; | 74 class WebColorChooserClient; |
75 class WebContentDecryptionModule; | 75 class WebContentDecryptionModule; |
76 class WebCookieJar; | 76 class WebCookieJar; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 // Called when a Feature-Policy HTTP header is encountered while loading the | 228 // Called when a Feature-Policy HTTP header is encountered while loading the |
229 // frame's document. | 229 // frame's document. |
230 virtual void didSetFeaturePolicyHeader( | 230 virtual void didSetFeaturePolicyHeader( |
231 const WebParsedFeaturePolicyHeader& parsedHeader) {} | 231 const WebParsedFeaturePolicyHeader& parsedHeader) {} |
232 | 232 |
233 // Called when a new Content Security Policy is added to the frame's | 233 // Called when a new Content Security Policy is added to the frame's |
234 // document. This can be triggered by handling of HTTP headers, handling | 234 // document. This can be triggered by handling of HTTP headers, handling |
235 // of <meta> element, or by inheriting CSP from the parent (in case of | 235 // of <meta> element, or by inheriting CSP from the parent (in case of |
236 // about:blank). | 236 // about:blank). |
237 virtual void didAddContentSecurityPolicy(const WebString& headerValue, | 237 virtual void didAddContentSecurityPolicy( |
238 WebContentSecurityPolicyType, | 238 const WebString& headerValue, |
239 WebContentSecurityPolicySource) {} | 239 WebContentSecurityPolicyType type, |
| 240 WebContentSecurityPolicySource source, |
| 241 const std::vector<WebContentSecurityPolicyPolicy>& policies) {} |
240 | 242 |
241 // Some frame owner properties have changed for a child frame of this frame. | 243 // Some frame owner properties have changed for a child frame of this frame. |
242 // Frame owner properties currently include: scrolling, marginwidth and | 244 // Frame owner properties currently include: scrolling, marginwidth and |
243 // marginheight. | 245 // marginheight. |
244 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, | 246 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, |
245 const WebFrameOwnerProperties&) {} | 247 const WebFrameOwnerProperties&) {} |
246 | 248 |
247 // Called when a watched CSS selector matches or stops matching. | 249 // Called when a watched CSS selector matches or stops matching. |
248 virtual void didMatchCSS( | 250 virtual void didMatchCSS( |
249 WebLocalFrame*, | 251 WebLocalFrame*, |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 // Overwrites the given URL to use an HTML5 embed if possible. | 754 // Overwrites the given URL to use an HTML5 embed if possible. |
753 // An empty URL is returned if the URL is not overriden. | 755 // An empty URL is returned if the URL is not overriden. |
754 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
755 return WebURL(); | 757 return WebURL(); |
756 } | 758 } |
757 }; | 759 }; |
758 | 760 |
759 } // namespace blink | 761 } // namespace blink |
760 | 762 |
761 #endif | 763 #endif |
OLD | NEW |