| 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 26 matching lines...) Expand all Loading... |
| 37 #include <wtf/Forward.h> | 37 #include <wtf/Forward.h> |
| 38 #include <wtf/Vector.h> | 38 #include <wtf/Vector.h> |
| 39 | 39 |
| 40 typedef class _jobject* jobject; | 40 typedef class _jobject* jobject; |
| 41 | 41 |
| 42 namespace v8 { | 42 namespace v8 { |
| 43 class Context; | 43 class Context; |
| 44 template<class T> class Handle; | 44 template<class T> class Handle; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace WebKit { |
| 48 class WebCookieJar; |
| 49 } |
| 50 |
| 47 namespace WebCore { | 51 namespace WebCore { |
| 48 | 52 |
| 49 class CachedResourceRequest; | 53 class CachedResourceRequest; |
| 50 class Color; | 54 class Color; |
| 51 class DOMWindowExtension; | 55 class DOMWindowExtension; |
| 52 class DOMWrapperWorld; | 56 class DOMWrapperWorld; |
| 53 class DocumentLoader; | 57 class DocumentLoader; |
| 54 class Element; | 58 class Element; |
| 55 class FormState; | 59 class FormState; |
| 56 class Frame; | 60 class Frame; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 216 |
| 213 // This callback notifies the client that the frame was about to run | 217 // This callback notifies the client that the frame was about to run |
| 214 // JavaScript but did not because allowScript returned false. We | 218 // JavaScript but did not because allowScript returned false. We |
| 215 // have a separate callback here because there are a number of places | 219 // have a separate callback here because there are a number of places |
| 216 // that need to know if JavaScript is enabled but are not necessarily | 220 // that need to know if JavaScript is enabled but are not necessarily |
| 217 // preparing to execute script. | 221 // preparing to execute script. |
| 218 virtual void didNotAllowScript() { } | 222 virtual void didNotAllowScript() { } |
| 219 // This callback is similar, but for plugins. | 223 // This callback is similar, but for plugins. |
| 220 virtual void didNotAllowPlugins() { } | 224 virtual void didNotAllowPlugins() { } |
| 221 | 225 |
| 222 virtual PassRefPtr<FrameNetworkingContext> createNetworkingContext() = 0
; | 226 virtual WebKit::WebCookieJar* cookieJar() const = 0; |
| 223 | 227 |
| 224 // Returns true if the embedder intercepted the postMessage call | 228 // Returns true if the embedder intercepted the postMessage call |
| 225 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/
, MessageEvent*) const { return false; } | 229 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/
, MessageEvent*) const { return false; } |
| 226 | 230 |
| 227 virtual void didChangeName(const String&) { } | 231 virtual void didChangeName(const String&) { } |
| 228 | 232 |
| 229 virtual void dispatchWillOpenSocketStream(SocketStreamHandle*) { } | 233 virtual void dispatchWillOpenSocketStream(SocketStreamHandle*) { } |
| 230 | 234 |
| 231 virtual void dispatchWillStartUsingPeerConnectionHandler(RTCPeerConnecti
onHandler*) { } | 235 virtual void dispatchWillStartUsingPeerConnectionHandler(RTCPeerConnecti
onHandler*) { } |
| 232 | 236 |
| 233 virtual void didRequestAutocomplete(PassRefPtr<FormState>) = 0; | 237 virtual void didRequestAutocomplete(PassRefPtr<FormState>) = 0; |
| 234 | 238 |
| 235 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSett
ings; } | 239 virtual bool allowWebGL(bool enabledPerSettings) { return enabledPerSett
ings; } |
| 236 // Informs the embedder that a WebGL canvas inside this frame received a
lost context | 240 // Informs the embedder that a WebGL canvas inside this frame received a
lost context |
| 237 // notification with the given GL_ARB_robustness guilt/innocence code (s
ee Extensions3D.h). | 241 // notification with the given GL_ARB_robustness guilt/innocence code (s
ee Extensions3D.h). |
| 238 virtual void didLoseWebGLContext(int) { } | 242 virtual void didLoseWebGLContext(int) { } |
| 239 | 243 |
| 240 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. | 244 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. |
| 241 virtual void dispatchWillInsertBody() { } | 245 virtual void dispatchWillInsertBody() { } |
| 242 | 246 |
| 243 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } | 247 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } |
| 244 }; | 248 }; |
| 245 | 249 |
| 246 } // namespace WebCore | 250 } // namespace WebCore |
| 247 | 251 |
| 248 #endif // FrameLoaderClient_h | 252 #endif // FrameLoaderClient_h |
| OLD | NEW |