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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 class ResourceRequest; | 63 class ResourceRequest; |
64 class ResourceResponse; | 64 class ResourceResponse; |
65 class SecurityOrigin; | 65 class SecurityOrigin; |
66 class SharedWorkerRepositoryClient; | 66 class SharedWorkerRepositoryClient; |
67 class SubstituteData; | 67 class SubstituteData; |
68 class WebApplicationCacheHost; | 68 class WebApplicationCacheHost; |
69 class WebApplicationCacheHostClient; | 69 class WebApplicationCacheHostClient; |
70 class WebCookieJar; | 70 class WebCookieJar; |
71 class WebMediaPlayerClient; | 71 class WebMediaPlayerClient; |
72 class WebMediaSession; | 72 class WebMediaSession; |
| 73 class WebMediaStream; |
73 class WebRTCPeerConnectionHandler; | 74 class WebRTCPeerConnectionHandler; |
74 class WebServiceWorkerProvider; | 75 class WebServiceWorkerProvider; |
75 class WebSocketHandle; | 76 class WebSocketHandle; |
76 class Widget; | 77 class Widget; |
77 | 78 |
78 class CORE_EXPORT FrameLoaderClient : public FrameClient { | 79 class CORE_EXPORT FrameLoaderClient : public FrameClient { |
79 public: | 80 public: |
80 ~FrameLoaderClient() override {} | 81 ~FrameLoaderClient() override {} |
81 | 82 |
82 virtual bool hasWebView() const = 0; // mainly for assertions | 83 virtual bool hasWebView() const = 0; // mainly for assertions |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 155 |
155 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; | 156 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; |
156 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. | 157 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. |
157 enum DetachedPluginPolicy { | 158 enum DetachedPluginPolicy { |
158 FailOnDetachedPlugin, | 159 FailOnDetachedPlugin, |
159 AllowDetachedPlugin, | 160 AllowDetachedPlugin, |
160 }; | 161 }; |
161 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 162 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; |
162 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; | 163 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; |
163 | 164 |
164 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, W
ebMediaPlayer::LoadType, const WebURL&, WebMediaPlayerClient*) = 0; | 165 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, W
ebMediaPlayer::LoadType, const WebMediaElementSource&, WebMediaPlayerClient*) =
0; |
165 | 166 |
166 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; | 167 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; |
167 | 168 |
168 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; | 169 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; |
169 | 170 |
170 virtual void didCreateNewDocument() = 0; | 171 virtual void didCreateNewDocument() = 0; |
171 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 172 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
172 virtual void documentElementAvailable() = 0; | 173 virtual void documentElementAvailable() = 0; |
173 virtual void runScriptsAtDocumentElementAvailable() = 0; | 174 virtual void runScriptsAtDocumentElementAvailable() = 0; |
174 virtual void runScriptsAtDocumentReady() = 0; | 175 virtual void runScriptsAtDocumentReady() = 0; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 UnloadHandler, | 256 UnloadHandler, |
256 }; | 257 }; |
257 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 258 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
258 | 259 |
259 virtual PassOwnPtrWillBeRawPtr<LinkResource> createServiceWorkerLinkResource
(HTMLLinkElement*) { return nullptr; } | 260 virtual PassOwnPtrWillBeRawPtr<LinkResource> createServiceWorkerLinkResource
(HTMLLinkElement*) { return nullptr; } |
260 }; | 261 }; |
261 | 262 |
262 } // namespace blink | 263 } // namespace blink |
263 | 264 |
264 #endif // FrameLoaderClient_h | 265 #endif // FrameLoaderClient_h |
OLD | NEW |