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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class ResourceRequest; | 60 class ResourceRequest; |
61 class ResourceResponse; | 61 class ResourceResponse; |
62 class SecurityOrigin; | 62 class SecurityOrigin; |
63 class SharedWorkerRepositoryClient; | 63 class SharedWorkerRepositoryClient; |
64 class SubstituteData; | 64 class SubstituteData; |
65 class WebApplicationCacheHost; | 65 class WebApplicationCacheHost; |
66 class WebApplicationCacheHostClient; | 66 class WebApplicationCacheHostClient; |
67 class WebCookieJar; | 67 class WebCookieJar; |
68 class WebMediaPlayer; | 68 class WebMediaPlayer; |
69 class WebMediaPlayerClient; | 69 class WebMediaPlayerClient; |
| 70 class WebMediaSession; |
70 class WebRTCPeerConnectionHandler; | 71 class WebRTCPeerConnectionHandler; |
71 class WebServiceWorkerProvider; | 72 class WebServiceWorkerProvider; |
72 class WebSocketHandle; | 73 class WebSocketHandle; |
73 class Widget; | 74 class Widget; |
74 | 75 |
75 class CORE_EXPORT FrameLoaderClient : public FrameClient { | 76 class CORE_EXPORT FrameLoaderClient : public FrameClient { |
76 public: | 77 public: |
77 ~FrameLoaderClient() override {} | 78 ~FrameLoaderClient() override {} |
78 | 79 |
79 virtual bool hasWebView() const = 0; // mainly for assertions | 80 virtual bool hasWebView() const = 0; // mainly for assertions |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. | 147 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. |
147 enum DetachedPluginPolicy { | 148 enum DetachedPluginPolicy { |
148 FailOnDetachedPlugin, | 149 FailOnDetachedPlugin, |
149 AllowDetachedPlugin, | 150 AllowDetachedPlugin, |
150 }; | 151 }; |
151 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 152 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; |
152 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; | 153 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; |
153 | 154 |
154 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; | 155 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; |
155 | 156 |
| 157 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; |
| 158 |
156 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT
ype, bool shouldPreferPlugInsForImages) = 0; | 159 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT
ype, bool shouldPreferPlugInsForImages) = 0; |
157 | 160 |
158 virtual void didCreateNewDocument() = 0; | 161 virtual void didCreateNewDocument() = 0; |
159 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 162 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
160 virtual void documentElementAvailable() = 0; | 163 virtual void documentElementAvailable() = 0; |
161 | 164 |
162 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) =
0; | 165 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) =
0; |
163 | 166 |
164 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro
up, int worldId) = 0; | 167 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro
up, int worldId) = 0; |
165 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) =
0; | 168 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) =
0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 BeforeUnloadHandler, | 236 BeforeUnloadHandler, |
234 UnloadHandler, | 237 UnloadHandler, |
235 }; | 238 }; |
236 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 239 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
237 | 240 |
238 }; | 241 }; |
239 | 242 |
240 } // namespace blink | 243 } // namespace blink |
241 | 244 |
242 #endif // FrameLoaderClient_h | 245 #endif // FrameLoaderClient_h |
OLD | NEW |