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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // the given URL and security info. | 137 // the given URL and security info. |
138 virtual void didRunContentWithCertificateErrors(const KURL&, const CString&
securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurity
Info) = 0; | 138 virtual void didRunContentWithCertificateErrors(const KURL&, const CString&
securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurity
Info) = 0; |
139 | 139 |
140 // Will be called when |PerformanceTiming| events are updated | 140 // Will be called when |PerformanceTiming| events are updated |
141 virtual void didChangePerformanceTiming() { } | 141 virtual void didChangePerformanceTiming() { } |
142 | 142 |
143 // Transmits the change in the set of watched CSS selectors property | 143 // Transmits the change in the set of watched CSS selectors property |
144 // that match any element on the frame. | 144 // that match any element on the frame. |
145 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons
t Vector<String>& removedSelectors) = 0; | 145 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons
t Vector<String>& removedSelectors) = 0; |
146 | 146 |
147 virtual PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFra
me*, const ResourceRequest&, const SubstituteData&) = 0; | 147 virtual RawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const Resou
rceRequest&, const SubstituteData&) = 0; |
148 | 148 |
149 virtual String userAgent() = 0; | 149 virtual String userAgent() = 0; |
150 | 150 |
151 virtual String doNotTrackValue() = 0; | 151 virtual String doNotTrackValue() = 0; |
152 | 152 |
153 virtual void transitionToCommittedForNewPage() = 0; | 153 virtual void transitionToCommittedForNewPage() = 0; |
154 | 154 |
155 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; | 155 virtual RawPtr<LocalFrame> createFrame(const FrameLoadRequest&, const Atomic
String& name, HTMLFrameOwnerElement*) = 0; |
156 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. | 156 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. |
157 enum DetachedPluginPolicy { | 157 enum DetachedPluginPolicy { |
158 FailOnDetachedPlugin, | 158 FailOnDetachedPlugin, |
159 AllowDetachedPlugin, | 159 AllowDetachedPlugin, |
160 }; | 160 }; |
161 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 161 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; | 162 virtual RawPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const V
ector<String>&, const Vector<String>&, const String&, bool loadManually, Detache
dPluginPolicy) = 0; |
163 | 163 |
164 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; | 164 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; |
165 | 165 |
166 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; | 166 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0; |
167 | 167 |
168 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; | 168 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi
meType, bool shouldPreferPlugInsForImages) = 0; |
169 | 169 |
170 virtual void didCreateNewDocument() = 0; | 170 virtual void didCreateNewDocument() = 0; |
171 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 171 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
172 virtual void documentElementAvailable() = 0; | 172 virtual void documentElementAvailable() = 0; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 // Called when elements preventing the sudden termination of the frame | 250 // Called when elements preventing the sudden termination of the frame |
251 // become present or stop being present. |type| is the type of element | 251 // become present or stop being present. |type| is the type of element |
252 // (BeforeUnload handler, Unload handler). | 252 // (BeforeUnload handler, Unload handler). |
253 enum SuddenTerminationDisablerType { | 253 enum SuddenTerminationDisablerType { |
254 BeforeUnloadHandler, | 254 BeforeUnloadHandler, |
255 UnloadHandler, | 255 UnloadHandler, |
256 }; | 256 }; |
257 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 257 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
258 | 258 |
259 virtual PassOwnPtrWillBeRawPtr<LinkResource> createServiceWorkerLinkResource
(HTMLLinkElement*) { return nullptr; } | 259 virtual RawPtr<LinkResource> createServiceWorkerLinkResource(HTMLLinkElement
*) { return nullptr; } |
260 }; | 260 }; |
261 | 261 |
262 } // namespace blink | 262 } // namespace blink |
263 | 263 |
264 #endif // FrameLoaderClient_h | 264 #endif // FrameLoaderClient_h |
OLD | NEW |