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