OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/dom/IconURL.h" | 35 #include "core/dom/IconURL.h" |
36 #include "core/fetch/ResourceLoaderOptions.h" | 36 #include "core/fetch/ResourceLoaderOptions.h" |
37 #include "core/frame/FrameClient.h" | 37 #include "core/frame/FrameClient.h" |
38 #include "core/html/LinkResource.h" | 38 #include "core/html/LinkResource.h" |
39 #include "core/loader/FrameLoaderTypes.h" | 39 #include "core/loader/FrameLoaderTypes.h" |
40 #include "core/loader/NavigationPolicy.h" | 40 #include "core/loader/NavigationPolicy.h" |
41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
| 42 #include "platform/network/ContentSecurityPolicyParsers.h" |
42 #include "platform/network/ResourceLoadPriority.h" | 43 #include "platform/network/ResourceLoadPriority.h" |
43 #include "platform/weborigin/Referrer.h" | 44 #include "platform/weborigin/Referrer.h" |
44 #include "public/platform/WebLoadingBehaviorFlag.h" | 45 #include "public/platform/WebLoadingBehaviorFlag.h" |
45 #include "wtf/Forward.h" | 46 #include "wtf/Forward.h" |
46 #include "wtf/Vector.h" | 47 #include "wtf/Vector.h" |
47 #include <v8.h> | 48 #include <v8.h> |
48 | 49 |
49 namespace blink { | 50 namespace blink { |
50 | 51 |
51 class Document; | 52 class Document; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 virtual WebCookieJar* cookieJar() const = 0; | 213 virtual WebCookieJar* cookieJar() const = 0; |
213 | 214 |
214 virtual void didChangeName(const String& name, const String& uniqueName) { } | 215 virtual void didChangeName(const String& name, const String& uniqueName) { } |
215 | 216 |
216 virtual void didEnforceStrictMixedContentChecking() {} | 217 virtual void didEnforceStrictMixedContentChecking() {} |
217 | 218 |
218 virtual void didUpdateToUniqueOrigin() {} | 219 virtual void didUpdateToUniqueOrigin() {} |
219 | 220 |
220 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } | 221 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } |
221 | 222 |
| 223 // Called when a new Content Security Policy is added to the frame's |
| 224 // document. This can be trigerred by handling of HTTP headers, handling |
| 225 // of <meta> element, or by inheriting CSP from the parent (in case of |
| 226 // about:blank). |
| 227 virtual void didAddContentSecurityPolicy(const String& headerValue, ContentS
ecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource) { } |
| 228 |
222 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) { } | 229 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) { } |
223 | 230 |
224 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } | 231 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } |
225 | 232 |
226 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio
nHandler*) { } | 233 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio
nHandler*) { } |
227 | 234 |
228 virtual void didRequestAutocomplete(HTMLFormElement*) = 0; | 235 virtual void didRequestAutocomplete(HTMLFormElement*) = 0; |
229 | 236 |
230 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings
; } | 237 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings
; } |
231 | 238 |
(...skipping 26 matching lines...) Expand all Loading... |
258 UnloadHandler, | 265 UnloadHandler, |
259 }; | 266 }; |
260 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 267 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
261 | 268 |
262 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re
turn nullptr; } | 269 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re
turn nullptr; } |
263 }; | 270 }; |
264 | 271 |
265 } // namespace blink | 272 } // namespace blink |
266 | 273 |
267 #endif // FrameLoaderClient_h | 274 #endif // FrameLoaderClient_h |
OLD | NEW |