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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class DocumentLoader; | 50 class DocumentLoader; |
51 class FetchRequest; | 51 class FetchRequest; |
52 class HTMLAppletElement; | 52 class HTMLAppletElement; |
53 class HTMLFormElement; | 53 class HTMLFormElement; |
54 class HTMLFrameOwnerElement; | 54 class HTMLFrameOwnerElement; |
55 class HTMLMediaElement; | 55 class HTMLMediaElement; |
56 class HTMLPlugInElement; | 56 class HTMLPlugInElement; |
57 class HistoryItem; | 57 class HistoryItem; |
58 class KURL; | 58 class KURL; |
59 class LocalFrame; | 59 class LocalFrame; |
60 class PluginPlaceholder; | |
61 class ResourceError; | 60 class ResourceError; |
62 class ResourceRequest; | 61 class ResourceRequest; |
63 class ResourceResponse; | 62 class ResourceResponse; |
64 class SecurityOrigin; | 63 class SecurityOrigin; |
65 class SharedWorkerRepositoryClient; | 64 class SharedWorkerRepositoryClient; |
66 class SubstituteData; | 65 class SubstituteData; |
67 class WebApplicationCacheHost; | 66 class WebApplicationCacheHost; |
68 class WebApplicationCacheHostClient; | 67 class WebApplicationCacheHostClient; |
69 class WebCookieJar; | 68 class WebCookieJar; |
70 class WebMediaPlayer; | 69 class WebMediaPlayer; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 143 |
145 virtual void transitionToCommittedForNewPage() = 0; | 144 virtual void transitionToCommittedForNewPage() = 0; |
146 | 145 |
147 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; | 146 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; |
148 // 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. |
149 enum DetachedPluginPolicy { | 148 enum DetachedPluginPolicy { |
150 FailOnDetachedPlugin, | 149 FailOnDetachedPlugin, |
151 AllowDetachedPlugin, | 150 AllowDetachedPlugin, |
152 }; | 151 }; |
153 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 152 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; |
154 | |
155 // Called before plugin creation in order to ask the embedder whether a | |
156 // placeholder should be substituted instead. | |
157 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder(Do
cument&, const KURL&, const Vector<String>& paramNames, const Vector<String>& pa
ramValues, const String& mimeType, bool loadManually) = 0; | |
158 | |
159 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; |
160 | 154 |
161 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem
ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String
>& paramValues) = 0; | 155 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem
ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String
>& paramValues) = 0; |
162 | 156 |
163 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; | 157 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; |
164 | 158 |
165 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; |
166 | 160 |
167 virtual void didCreateNewDocument() = 0; | 161 virtual void didCreateNewDocument() = 0; |
168 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 162 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 BeforeUnloadHandler, | 236 BeforeUnloadHandler, |
243 UnloadHandler, | 237 UnloadHandler, |
244 }; | 238 }; |
245 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 239 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
246 | 240 |
247 }; | 241 }; |
248 | 242 |
249 } // namespace blink | 243 } // namespace blink |
250 | 244 |
251 #endif // FrameLoaderClient_h | 245 #endif // FrameLoaderClient_h |
OLD | NEW |