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 22 matching lines...) Expand all Loading... |
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/loader/FrameLoaderTypes.h" | 38 #include "core/loader/FrameLoaderTypes.h" |
39 #include "core/loader/NavigationPolicy.h" | 39 #include "core/loader/NavigationPolicy.h" |
40 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
41 #include "platform/network/ResourceLoadPriority.h" | 41 #include "platform/network/ResourceLoadPriority.h" |
42 #include "platform/weborigin/Referrer.h" | 42 #include "platform/weborigin/Referrer.h" |
| 43 #include "public/platform/WebMediaPlayer.h" |
43 #include "wtf/Forward.h" | 44 #include "wtf/Forward.h" |
44 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
45 #include <v8.h> | 46 #include <v8.h> |
46 | 47 |
47 namespace blink { | 48 namespace blink { |
48 | 49 |
49 class Document; | 50 class Document; |
50 class DocumentLoader; | 51 class DocumentLoader; |
51 class FetchRequest; | 52 class FetchRequest; |
52 class HTMLFormElement; | 53 class HTMLFormElement; |
53 class HTMLFrameElementBase; | 54 class HTMLFrameElementBase; |
54 class HTMLFrameOwnerElement; | 55 class HTMLFrameOwnerElement; |
55 class HTMLMediaElement; | 56 class HTMLMediaElement; |
56 class HTMLPlugInElement; | 57 class HTMLPlugInElement; |
57 class HistoryItem; | 58 class HistoryItem; |
58 class KURL; | 59 class KURL; |
59 class LocalFrame; | 60 class LocalFrame; |
60 class ResourceError; | 61 class ResourceError; |
61 class ResourceRequest; | 62 class ResourceRequest; |
62 class ResourceResponse; | 63 class ResourceResponse; |
63 class SecurityOrigin; | 64 class SecurityOrigin; |
64 class SharedWorkerRepositoryClient; | 65 class SharedWorkerRepositoryClient; |
65 class SubstituteData; | 66 class SubstituteData; |
66 class WebApplicationCacheHost; | 67 class WebApplicationCacheHost; |
67 class WebApplicationCacheHostClient; | 68 class WebApplicationCacheHostClient; |
68 class WebCookieJar; | 69 class WebCookieJar; |
69 class WebMediaPlayer; | |
70 class WebMediaPlayerClient; | 70 class WebMediaPlayerClient; |
71 class WebMediaSession; | 71 class WebMediaSession; |
72 class WebRTCPeerConnectionHandler; | 72 class WebRTCPeerConnectionHandler; |
73 class WebServiceWorkerProvider; | 73 class WebServiceWorkerProvider; |
74 class WebSocketHandle; | 74 class WebSocketHandle; |
75 class Widget; | 75 class Widget; |
76 | 76 |
77 class CORE_EXPORT FrameLoaderClient : public FrameClient { | 77 class CORE_EXPORT FrameLoaderClient : public FrameClient { |
78 public: | 78 public: |
79 ~FrameLoaderClient() override {} | 79 ~FrameLoaderClient() override {} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; | 154 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; |
155 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. | 155 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. |
156 enum DetachedPluginPolicy { | 156 enum DetachedPluginPolicy { |
157 FailOnDetachedPlugin, | 157 FailOnDetachedPlugin, |
158 AllowDetachedPlugin, | 158 AllowDetachedPlugin, |
159 }; | 159 }; |
160 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 160 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; |
161 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; | 161 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; |
162 | 162 |
163 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; | 163 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, W
ebMediaPlayer::LoadType, const WebURL&, WebMediaPlayerClient*) = 0; |
164 | 164 |
165 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; | 165 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; |
166 | 166 |
167 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; | 167 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; |
168 | 168 |
169 virtual void didCreateNewDocument() = 0; | 169 virtual void didCreateNewDocument() = 0; |
170 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 170 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
171 virtual void documentElementAvailable() = 0; | 171 virtual void documentElementAvailable() = 0; |
172 virtual void runScriptsAtDocumentElementAvailable() = 0; | 172 virtual void runScriptsAtDocumentElementAvailable() = 0; |
173 virtual void runScriptsAtDocumentReady() = 0; | 173 virtual void runScriptsAtDocumentReady() = 0; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 BeforeUnloadHandler, | 253 BeforeUnloadHandler, |
254 UnloadHandler, | 254 UnloadHandler, |
255 }; | 255 }; |
256 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 256 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
257 | 257 |
258 }; | 258 }; |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
261 | 261 |
262 #endif // FrameLoaderClient_h | 262 #endif // FrameLoaderClient_h |
OLD | NEW |