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/WebEffectiveConnectionType.h" | 45 #include "public/platform/WebEffectiveConnectionType.h" |
45 #include "public/platform/WebLoadingBehaviorFlag.h" | 46 #include "public/platform/WebLoadingBehaviorFlag.h" |
46 #include "wtf/Forward.h" | 47 #include "wtf/Forward.h" |
47 #include "wtf/Vector.h" | 48 #include "wtf/Vector.h" |
48 #include <v8.h> | 49 #include <v8.h> |
49 | 50 |
50 namespace blink { | 51 namespace blink { |
51 | 52 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 virtual WebCookieJar* cookieJar() const = 0; | 214 virtual WebCookieJar* cookieJar() const = 0; |
214 | 215 |
215 virtual void didChangeName(const String& name, const String& uniqueName) { } | 216 virtual void didChangeName(const String& name, const String& uniqueName) { } |
216 | 217 |
217 virtual void didEnforceStrictMixedContentChecking() {} | 218 virtual void didEnforceStrictMixedContentChecking() {} |
218 | 219 |
219 virtual void didUpdateToUniqueOrigin() {} | 220 virtual void didUpdateToUniqueOrigin() {} |
220 | 221 |
221 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } | 222 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } |
222 | 223 |
| 224 // Called when a new Content Security Policy is added to the frame's |
| 225 // document. This can be triggered by handling of HTTP headers, handling |
| 226 // of <meta> element, or by inheriting CSP from the parent (in case of |
| 227 // about:blank). |
| 228 virtual void didAddContentSecurityPolicy(const String& headerValue, ContentS
ecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource) { } |
| 229 |
223 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) { } | 230 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) { } |
224 | 231 |
225 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } | 232 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } |
226 | 233 |
227 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio
nHandler*) { } | 234 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio
nHandler*) { } |
228 | 235 |
229 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings
; } | 236 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSettings
; } |
230 | 237 |
231 // If an HTML document is being loaded, informs the embedder that the docume
nt will have its <body> attached soon. | 238 // If an HTML document is being loaded, informs the embedder that the docume
nt will have its <body> attached soon. |
232 virtual void dispatchWillInsertBody() { } | 239 virtual void dispatchWillInsertBody() { } |
(...skipping 27 matching lines...) Expand all Loading... |
260 | 267 |
261 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re
turn nullptr; } | 268 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re
turn nullptr; } |
262 | 269 |
263 // Effective connection type when this frame was loaded. | 270 // Effective connection type when this frame was loaded. |
264 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web
EffectiveConnectionType::TypeUnknown; } | 271 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web
EffectiveConnectionType::TypeUnknown; } |
265 }; | 272 }; |
266 | 273 |
267 } // namespace blink | 274 } // namespace blink |
268 | 275 |
269 #endif // FrameLoaderClient_h | 276 #endif // FrameLoaderClient_h |
OLD | NEW |