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 16 matching lines...) Expand all Loading... |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef FrameLoaderClient_h | 30 #ifndef FrameLoaderClient_h |
31 #define FrameLoaderClient_h | 31 #define FrameLoaderClient_h |
32 | 32 |
33 #include "core/dom/IconURL.h" | 33 #include "core/dom/IconURL.h" |
34 #include "core/frame/FrameClient.h" | 34 #include "core/frame/FrameClient.h" |
35 #include "core/loader/FrameLoaderTypes.h" | 35 #include "core/loader/FrameLoaderTypes.h" |
36 #include "core/loader/NavigationPolicy.h" | 36 #include "core/loader/NavigationPolicy.h" |
| 37 #include "platform/heap/Handle.h" |
37 #include "platform/network/ResourceLoadPriority.h" | 38 #include "platform/network/ResourceLoadPriority.h" |
38 #include "platform/weborigin/Referrer.h" | 39 #include "platform/weborigin/Referrer.h" |
39 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
40 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
41 #include <v8.h> | 42 #include <v8.h> |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 class WebCookieJar; | 45 class WebCookieJar; |
45 class WebRTCPeerConnectionHandler; | 46 class WebRTCPeerConnectionHandler; |
46 class WebServiceWorkerProvider; | 47 class WebServiceWorkerProvider; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void selectorMatchChanged(const Vector<String>& addedSelectors,
const Vector<String>& removedSelectors) = 0; | 148 virtual void selectorMatchChanged(const Vector<String>& addedSelectors,
const Vector<String>& removedSelectors) = 0; |
148 | 149 |
149 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con
st ResourceRequest&, const SubstituteData&) = 0; | 150 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con
st ResourceRequest&, const SubstituteData&) = 0; |
150 | 151 |
151 virtual String userAgent(const KURL&) = 0; | 152 virtual String userAgent(const KURL&) = 0; |
152 | 153 |
153 virtual String doNotTrackValue() = 0; | 154 virtual String doNotTrackValue() = 0; |
154 | 155 |
155 virtual void transitionToCommittedForNewPage() = 0; | 156 virtual void transitionToCommittedForNewPage() = 0; |
156 | 157 |
157 virtual PassRefPtr<LocalFrame> createFrame(const KURL&, const AtomicStri
ng& name, const Referrer&, HTMLFrameOwnerElement*) = 0; | 158 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const KURL&, cons
t AtomicString& name, const Referrer&, HTMLFrameOwnerElement*) = 0; |
158 // Whether or not plugin creation should fail if the HTMLPlugInElement i
sn't in the DOM after plugin initialization. | 159 // Whether or not plugin creation should fail if the HTMLPlugInElement i
sn't in the DOM after plugin initialization. |
159 enum DetachedPluginPolicy { | 160 enum DetachedPluginPolicy { |
160 FailOnDetachedPlugin, | 161 FailOnDetachedPlugin, |
161 AllowDetachedPlugin, | 162 AllowDetachedPlugin, |
162 }; | 163 }; |
163 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons
t = 0; | 164 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons
t = 0; |
164 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&,
const Vector<String>&, const Vector<String>&, const String&, bool loadManually,
DetachedPluginPolicy) = 0; | 165 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&,
const Vector<String>&, const Vector<String>&, const String&, bool loadManually,
DetachedPluginPolicy) = 0; |
165 | 166 |
166 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co
nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param
Values) = 0; | 167 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co
nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param
Values) = 0; |
167 | 168 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 virtual void didStopAllLoaders() { } | 231 virtual void didStopAllLoaders() { } |
231 | 232 |
232 virtual void dispatchDidChangeManifest() { } | 233 virtual void dispatchDidChangeManifest() { } |
233 | 234 |
234 virtual bool isFrameLoaderClientImpl() const { return false; } | 235 virtual bool isFrameLoaderClientImpl() const { return false; } |
235 }; | 236 }; |
236 | 237 |
237 } // namespace blink | 238 } // namespace blink |
238 | 239 |
239 #endif // FrameLoaderClient_h | 240 #endif // FrameLoaderClient_h |
OLD | NEW |