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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 class SubstituteData; | 83 class SubstituteData; |
84 class Widget; | 84 class Widget; |
85 | 85 |
86 enum NavigationHistoryPolicy { | 86 enum NavigationHistoryPolicy { |
87 NavigationCreatedHistoryEntry, | 87 NavigationCreatedHistoryEntry, |
88 NavigationReusedHistoryEntry | 88 NavigationReusedHistoryEntry |
89 }; | 89 }; |
90 | 90 |
91 class FrameLoaderClient { | 91 class FrameLoaderClient { |
92 public: | 92 public: |
| 93 enum PluginLoadType { PluginLoadRequiresRenderer, PluginLoadWithoutRende
rer}; |
93 virtual ~FrameLoaderClient() { } | 94 virtual ~FrameLoaderClient() { } |
94 | 95 |
95 virtual void frameLoaderDestroyed() = 0; | 96 virtual void frameLoaderDestroyed() = 0; |
96 | 97 |
97 virtual bool hasWebView() const = 0; // mainly for assertions | 98 virtual bool hasWebView() const = 0; // mainly for assertions |
98 | 99 |
99 virtual void detachedFromParent() = 0; | 100 virtual void detachedFromParent() = 0; |
100 | 101 |
101 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { } | 102 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { } |
102 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden
tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; | 103 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden
tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 162 |
162 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; | 163 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe
quest&, const SubstituteData&) = 0; |
163 | 164 |
164 virtual String userAgent(const KURL&) = 0; | 165 virtual String userAgent(const KURL&) = 0; |
165 | 166 |
166 virtual String doNotTrackValue() = 0; | 167 virtual String doNotTrackValue() = 0; |
167 | 168 |
168 virtual void transitionToCommittedForNewPage() = 0; | 169 virtual void transitionToCommittedForNewPage() = 0; |
169 | 170 |
170 virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, c
onst String& referrer, HTMLFrameOwnerElement*) = 0; | 171 virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, c
onst String& referrer, HTMLFrameOwnerElement*) = 0; |
171 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElemen
t*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bo
ol loadManually) = 0; | 172 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons
t = 0; |
| 173 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElemen
t*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bo
ol loadManually, PluginLoadType = PluginLoadRequiresRenderer) = 0; |
172 | 174 |
173 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAp
pletElement*, const KURL& baseURL, const Vector<String>& paramNames, const Vecto
r<String>& paramValues) = 0; | 175 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAp
pletElement*, const KURL& baseURL, const Vector<String>& paramNames, const Vecto
r<String>& paramValues) = 0; |
174 | 176 |
175 virtual ObjectContentType objectContentType(const KURL&, const String& m
imeType, bool shouldPreferPlugInsForImages) = 0; | 177 virtual ObjectContentType objectContentType(const KURL&, const String& m
imeType, bool shouldPreferPlugInsForImages) = 0; |
176 | 178 |
177 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*) = 0; | 179 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*) = 0; |
178 virtual void documentElementAvailable() = 0; | 180 virtual void documentElementAvailable() = 0; |
179 | 181 |
180 virtual void didExhaustMemoryAvailableForScript() { }; | 182 virtual void didExhaustMemoryAvailableForScript() { }; |
181 | 183 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerP
rovider(PassOwnPtr<blink::WebServiceWorkerProviderClient>) = 0; | 232 virtual PassOwnPtr<blink::WebServiceWorkerProvider> createServiceWorkerP
rovider(PassOwnPtr<blink::WebServiceWorkerProviderClient>) = 0; |
231 | 233 |
232 virtual void didStopAllLoaders() { } | 234 virtual void didStopAllLoaders() { } |
233 | 235 |
234 virtual bool isFrameLoaderClientImpl() const { return false; } | 236 virtual bool isFrameLoaderClientImpl() const { return false; } |
235 }; | 237 }; |
236 | 238 |
237 } // namespace WebCore | 239 } // namespace WebCore |
238 | 240 |
239 #endif // FrameLoaderClient_h | 241 #endif // FrameLoaderClient_h |
OLD | NEW |