Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: webkit/api/src/FrameLoaderClientImpl.h

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/api/src/EditorClientImpl.cpp ('k') | webkit/api/src/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 /*
2 // Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 // found in the LICENSE file. 3 *
4 4 * Redistribution and use in source and binary forms, with or without
5 #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ 5 * modification, are permitted provided that the following conditions are
6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ 6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #ifndef FrameLoaderClientImpl_h
32 #define FrameLoaderClientImpl_h
7 33
8 #include "FrameLoaderClient.h" 34 #include "FrameLoaderClient.h"
9 #include "KURL.h" 35 #include "KURL.h"
36 // FIXME: remove this relative path once consumers from glue are removed.
37 #include "../public/WebNavigationPolicy.h"
10 #include <wtf/PassOwnPtr.h> 38 #include <wtf/PassOwnPtr.h>
11 #include <wtf/RefPtr.h> 39 #include <wtf/RefPtr.h>
12 40
13 #include "webkit/api/public/WebNavigationPolicy.h" 41 namespace WebKit {
14
15 class WebFrameImpl; 42 class WebFrameImpl;
16
17 namespace WebKit {
18 class WebPluginContainerImpl; 43 class WebPluginContainerImpl;
19 class WebPluginLoadObserver; 44 class WebPluginLoadObserver;
20 } 45
21 46 class FrameLoaderClientImpl : public WebCore::FrameLoaderClient {
22 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { 47 public:
23 public: 48 FrameLoaderClientImpl(WebFrameImpl* webFrame);
24 WebFrameLoaderClient(WebFrameImpl* webframe); 49 ~FrameLoaderClientImpl();
25 virtual ~WebFrameLoaderClient(); 50
26 51 WebFrameImpl* webFrame() const { return m_webFrame; }
27 WebFrameImpl* webframe() const { return webframe_; } 52
28 53 // WebCore::FrameLoaderClient ----------------------------------------------
29 // WebCore::FrameLoaderClient ---------------------------------------------- 54
30 55 virtual void frameLoaderDestroyed();
31 virtual void frameLoaderDestroyed(); 56
32 57 // Notifies the WebView delegate that the JS window object has been cleared,
33 // Notifies the WebView delegate that the JS window object has been cleared, 58 // giving it a chance to bind native objects to the window before script
34 // giving it a chance to bind native objects to the window before script 59 // parsing begins.
35 // parsing begins. 60 virtual void windowObjectCleared();
36 virtual void windowObjectCleared(); 61 virtual void documentElementAvailable();
37 virtual void documentElementAvailable(); 62
38 63 // A frame's V8 context was created or destroyed.
39 // A frame's V8 context was created or destroyed. 64 virtual void didCreateScriptContextForFrame();
40 virtual void didCreateScriptContextForFrame(); 65 virtual void didDestroyScriptContextForFrame();
41 virtual void didDestroyScriptContextForFrame(); 66
42 67 // A context untied to a frame was created (through evaluateInNewContext).
43 // A context untied to a frame was created (through evaluateInNewContext). 68 // This context is not tied to the lifetime of its frame, and is destroyed
44 // This context is not tied to the lifetime of its frame, and is destroyed 69 // in garbage collection.
45 // in garbage collection. 70 virtual void didCreateIsolatedScriptContext();
46 virtual void didCreateIsolatedScriptContext(); 71
47 72 virtual bool hasWebView() const;
48 virtual bool hasWebView() const; // mainly for assertions 73 virtual bool hasFrameView() const;
49 virtual bool hasFrameView() const; // ditto 74 virtual void makeRepresentation(WebCore::DocumentLoader*);
50 75 virtual void forceLayout();
51 virtual void makeRepresentation(WebCore::DocumentLoader*); 76 virtual void forceLayoutForNonHTML();
52 virtual void forceLayout(); 77 virtual void setCopiesOnScroll();
53 virtual void forceLayoutForNonHTML(); 78 virtual void detachedFromParent2();
54 79 virtual void detachedFromParent3();
55 virtual void setCopiesOnScroll(); 80 virtual void assignIdentifierToInitialRequest(unsigned long identifier, WebCore::DocumentLoader*, const WebCore::ResourceRequest&);
56 81 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirectResponse);
57 virtual void detachedFromParent2(); 82 virtual bool shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long identifier);
58 virtual void detachedFromParent3(); 83 virtual void dispatchDidReceiveAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&);
59 84 virtual void dispatchDidCancelAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&);
60 virtual void assignIdentifierToInitialRequest(unsigned long identifier, WebCore::DocumentLoader*, const WebCore::ResourceRequest&); 85 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceResponse&);
61 86 virtual void dispatchDidReceiveContentLength(WebCore::DocumentLoader*, unsigned long identifier, int lengthReceived);
62 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirectResponse); 87 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned long identifier);
63 virtual bool shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long identifier); 88 virtual void dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceError&);
64 virtual void dispatchDidReceiveAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&); 89 virtual bool dispatchDidLoadResourceFromMemoryCache(WebCore::DocumentLoader*, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&, int length);
65 virtual void dispatchDidCancelAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::AuthenticationChallenge&); 90 virtual void dispatchDidLoadResourceByXMLHttpRequest(unsigned long identifier, const WebCore::ScriptString&);
66 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceResponse&); 91 virtual void dispatchDidHandleOnloadEvents();
67 virtual void dispatchDidReceiveContentLength(WebCore::DocumentLoader*, unsigned long identifier, int lengthReceived); 92 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad();
68 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned long identifier); 93 virtual void dispatchDidCancelClientRedirect();
69 virtual void dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long identifier, const WebCore::ResourceError&); 94 virtual void dispatchWillPerformClientRedirect(const WebCore::KURL&, double interval, double fireDate);
70 virtual bool dispatchDidLoadResourceFromMemoryCache(WebCore::DocumentLoader*, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&, int length); 95 virtual void dispatchDidChangeLocationWithinPage();
71 virtual void dispatchDidLoadResourceByXMLHttpRequest(unsigned long identifier, const WebCore::ScriptString&); 96 virtual void dispatchWillClose();
72 97 virtual void dispatchDidReceiveIcon();
73 virtual void dispatchDidHandleOnloadEvents(); 98 virtual void dispatchDidStartProvisionalLoad();
74 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad(); 99 virtual void dispatchDidReceiveTitle(const WebCore::String& title);
75 virtual void dispatchDidCancelClientRedirect(); 100 virtual void dispatchDidCommitLoad();
76 virtual void dispatchWillPerformClientRedirect(const WebCore::KURL&, double interval, double fireDate); 101 virtual void dispatchDidFailProvisionalLoad(const WebCore::ResourceError&);
77 virtual void dispatchDidChangeLocationWithinPage(); 102 virtual void dispatchDidFailLoad(const WebCore::ResourceError&);
78 virtual void dispatchWillClose(); 103 virtual void dispatchDidFinishDocumentLoad();
79 virtual void dispatchDidReceiveIcon(); 104 virtual void dispatchDidFinishLoad();
80 virtual void dispatchDidStartProvisionalLoad(); 105 virtual void dispatchDidFirstLayout();
81 virtual void dispatchDidReceiveTitle(const WebCore::String& title); 106 virtual void dispatchDidFirstVisuallyNonEmptyLayout();
82 virtual void dispatchDidCommitLoad(); 107 virtual WebCore::Frame* dispatchCreatePage();
83 virtual void dispatchDidFailProvisionalLoad(const WebCore::ResourceError&); 108 virtual void dispatchShow();
84 virtual void dispatchDidFailLoad(const WebCore::ResourceError&); 109 virtual void dispatchDecidePolicyForMIMEType(WebCore::FramePolicyFunction function, const WebCore::String& mime_type, const WebCore::ResourceRequest&);
85 virtual void dispatchDidFinishDocumentLoad(); 110 virtual void dispatchDecidePolicyForNewWindowAction(WebCore::FramePolicyFunction function, const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request, PassRefPtr<WebCore::FormState> form_state, const WebCore::String& frame_name);
86 virtual void dispatchDidFinishLoad(); 111 virtual void dispatchDecidePolicyForNavigationAction(WebCore::FramePolicyFunction function, const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request, PassRefPtr<WebCore::FormState> form_state);
87 virtual void dispatchDidFirstLayout(); 112 virtual void cancelPolicyCheck();
88 virtual void dispatchDidFirstVisuallyNonEmptyLayout(); 113 virtual void dispatchUnableToImplementPolicy(const WebCore::ResourceError&);
89 114 virtual void dispatchWillSubmitForm(WebCore::FramePolicyFunction, PassRefPtr<WebCore::FormState>);
90 virtual WebCore::Frame* dispatchCreatePage(); 115 virtual void dispatchDidLoadMainResource(WebCore::DocumentLoader*);
91 virtual void dispatchShow(); 116 virtual void revertToProvisionalState(WebCore::DocumentLoader*);
92 117 virtual void setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&);
93 virtual void dispatchDecidePolicyForMIMEType(WebCore::FramePolicyFunction function, const WebCore::String& mime_type, const WebCore::ResourceRequest&); 118 virtual void willChangeEstimatedProgress() { }
94 virtual void dispatchDecidePolicyForNewWindowAction(WebCore::FramePolicyFunction function, const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request, PassRefPtr<WebCore::FormState> form_state, const WebCore::String& frame_name); 119 virtual void didChangeEstimatedProgress() { }
95 virtual void dispatchDecidePolicyForNavigationAction(WebCore::FramePolicyFunction function, const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request, PassRefPtr<WebCore::FormState> form_state); 120 virtual void postProgressStartedNotification();
96 virtual void cancelPolicyCheck(); 121 virtual void postProgressEstimateChangedNotification();
97 122 virtual void postProgressFinishedNotification();
98 virtual void dispatchUnableToImplementPolicy(const WebCore::ResourceError&); 123 virtual void setMainFrameDocumentReady(bool);
99 124 virtual void startDownload(const WebCore::ResourceRequest&);
100 virtual void dispatchWillSubmitForm(WebCore::FramePolicyFunction, PassRefPtr<WebCore::FormState>); 125 virtual void willChangeTitle(WebCore::DocumentLoader*);
101 126 virtual void didChangeTitle(WebCore::DocumentLoader*);
102 virtual void dispatchDidLoadMainResource(WebCore::DocumentLoader*); 127 virtual void committedLoad(WebCore::DocumentLoader*, const char*, int);
103 virtual void revertToProvisionalState(WebCore::DocumentLoader*); 128 virtual void finishedLoading(WebCore::DocumentLoader*);
104 virtual void setMainDocumentError(WebCore::DocumentLoader*, const WebCore::ResourceError&); 129 virtual void updateGlobalHistory();
105 130 virtual void updateGlobalHistoryRedirectLinks();
106 // Maybe these should go into a ProgressTrackerClient some day 131 virtual bool shouldGoToHistoryItem(WebCore::HistoryItem*) const;
107 virtual void willChangeEstimatedProgress() { } 132 virtual void didDisplayInsecureContent();
108 virtual void didChangeEstimatedProgress() { } 133 virtual void didRunInsecureContent(WebCore::SecurityOrigin*);
109 virtual void postProgressStartedNotification(); 134 virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&);
110 virtual void postProgressEstimateChangedNotification(); 135 virtual WebCore::ResourceError cancelledError(const WebCore::ResourceRequest&);
111 virtual void postProgressFinishedNotification(); 136 virtual WebCore::ResourceError cannotShowURLError(const WebCore::ResourceRequest&);
112 137 virtual WebCore::ResourceError interruptForPolicyChangeError(const WebCore::ResourceRequest&);
113 virtual void setMainFrameDocumentReady(bool); 138 virtual WebCore::ResourceError cannotShowMIMETypeError(const WebCore::ResourceResponse&);
114 139 virtual WebCore::ResourceError fileDoesNotExistError(const WebCore::ResourceResponse&);
115 virtual void startDownload(const WebCore::ResourceRequest&); 140 virtual WebCore::ResourceError pluginWillHandleLoadError(const WebCore::ResourceResponse&);
116 141 virtual bool shouldFallBack(const WebCore::ResourceError&);
117 virtual void willChangeTitle(WebCore::DocumentLoader*); 142 virtual bool canHandleRequest(const WebCore::ResourceRequest&) const;
118 virtual void didChangeTitle(WebCore::DocumentLoader*); 143 virtual bool canShowMIMEType(const WebCore::String& MIMEType) const;
119 144 virtual bool representationExistsForURLScheme(const WebCore::String& URLScheme) const;
120 virtual void committedLoad(WebCore::DocumentLoader*, const char*, int); 145 virtual WebCore::String generatedMIMETypeForURLScheme(const WebCore::String& URLScheme) const;
121 virtual void finishedLoading(WebCore::DocumentLoader*); 146 virtual void frameLoadCompleted();
122 147 virtual void saveViewStateToItem(WebCore::HistoryItem*);
123 virtual void updateGlobalHistory(); 148 virtual void restoreViewState();
124 virtual void updateGlobalHistoryRedirectLinks(); 149 virtual void provisionalLoadStarted();
125 150 virtual void didFinishLoad();
126 virtual bool shouldGoToHistoryItem(WebCore::HistoryItem*) const; 151 virtual void prepareForDataSourceReplacement();
127 152 virtual PassRefPtr<WebCore::DocumentLoader> createDocumentLoader(
128 virtual void didDisplayInsecureContent(); 153 const WebCore::ResourceRequest&, const WebCore::SubstituteData&);
129 virtual void didRunInsecureContent(WebCore::SecurityOrigin*); 154 virtual void setTitle(const WebCore::String& title, const WebCore::KURL&);
130 155 virtual WebCore::String userAgent(const WebCore::KURL&);
131 virtual WebCore::ResourceError blockedError(const WebCore::ResourceRequest&); 156 virtual void savePlatformDataToCachedFrame(WebCore::CachedFrame*);
132 virtual WebCore::ResourceError cancelledError(const WebCore::ResourceRequest&); 157 virtual void transitionToCommittedFromCachedFrame(WebCore::CachedFrame*);
133 virtual WebCore::ResourceError cannotShowURLError(const WebCore::ResourceRequest&); 158 virtual void transitionToCommittedForNewPage();
134 virtual WebCore::ResourceError interruptForPolicyChangeError(const WebCore::ResourceRequest&); 159 virtual bool canCachePage() const;
135 160 virtual void download(
136 virtual WebCore::ResourceError cannotShowMIMETypeError(const WebCore::ResourceResponse&); 161 WebCore::ResourceHandle*, const WebCore::ResourceRequest&,
137 virtual WebCore::ResourceError fileDoesNotExistError(const WebCore::ResourceResponse&); 162 const WebCore::ResourceRequest& initialRequest,
138 virtual WebCore::ResourceError pluginWillHandleLoadError(const WebCore::ResourceResponse&); 163 const WebCore::ResourceResponse&);
139 164 virtual PassRefPtr<WebCore::Frame> createFrame(
140 virtual bool shouldFallBack(const WebCore::ResourceError&); 165 const WebCore::KURL& url, const WebCore::String& name,
141 166 WebCore::HTMLFrameOwnerElement* ownerElement,
142 virtual bool canHandleRequest(const WebCore::ResourceRequest&) const; 167 const WebCore::String& referrer, bool allowsScrolling,
143 virtual bool canShowMIMEType(const WebCore::String& MIMEType) const; 168 int marginWidth, int marginHeight);
144 virtual bool representationExistsForURLScheme(const WebCore::String& URLScheme) const; 169 virtual PassRefPtr<WebCore::Widget> createPlugin(
145 virtual WebCore::String generatedMIMETypeForURLScheme(const WebCore::String& URLScheme) const; 170 const WebCore::IntSize&, WebCore::HTMLPlugInElement*, const WebCore::KURL&,
146 171 const Vector<WebCore::String>&, const Vector<WebCore::String>&,
147 virtual void frameLoadCompleted(); 172 const WebCore::String&, bool loadManually);
148 virtual void saveViewStateToItem(WebCore::HistoryItem*); 173 virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget);
149 virtual void restoreViewState(); 174 virtual PassRefPtr<WebCore::Widget> createJavaAppletWidget(
150 virtual void provisionalLoadStarted(); 175 const WebCore::IntSize&,
151 virtual void didFinishLoad(); 176 WebCore::HTMLAppletElement*,
152 virtual void prepareForDataSourceReplacement(); 177 const WebCore::KURL& /* base_url */,
153 178 const Vector<WebCore::String>& paramNames,
154 virtual PassRefPtr<WebCore::DocumentLoader> createDocumentLoader( 179 const Vector<WebCore::String>& paramValues);
155 const WebCore::ResourceRequest&, 180 virtual WebCore::ObjectContentType objectContentType(
156 const WebCore::SubstituteData&); 181 const WebCore::KURL& url, const WebCore::String& mimeType);
157 virtual void setTitle(const WebCore::String& title, const WebCore::KURL&); 182 virtual WebCore::String overrideMediaType() const;
158 183 virtual void didPerformFirstNavigation() const;
159 virtual WebCore::String userAgent(const WebCore::KURL&); 184 virtual void registerForIconNotification(bool listen = true);
160 185
161 virtual void savePlatformDataToCachedFrame(WebCore::CachedFrame*); 186 private:
162 virtual void transitionToCommittedFromCachedFrame(WebCore::CachedFrame*); 187 void makeDocumentView();
163 virtual void transitionToCommittedForNewPage(); 188
164 189 // Given a NavigationAction, determine the associated WebNavigationPolicy.
165 virtual bool canCachePage() const; 190 // For example, a middle click means "open in background tab".
166 virtual void download(WebCore::ResourceHandle* handle, 191 static bool actionSpecifiesNavigationPolicy(
167 const WebCore::ResourceRequest& request, 192 const WebCore::NavigationAction& action, WebNavigationPolicy* policy);
168 const WebCore::ResourceRequest& initialRequest, 193
169 const WebCore::ResourceResponse& response); 194 // Called when a dummy back-forward navigation is intercepted.
170 virtual PassRefPtr<WebCore::Frame> createFrame( 195 void handleBackForwardNavigation(const WebCore::KURL&);
171 const WebCore::KURL& url, 196
172 const WebCore::String& name, 197 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver();
173 WebCore::HTMLFrameOwnerElement* ownerElement, 198
174 const WebCore::String& referrer, 199 // The WebFrame that owns this object and manages its lifetime. Therefore,
175 bool allowsScrolling, int marginWidth, 200 // the web frame object is guaranteed to exist.
176 int marginHeight); 201 WebFrameImpl* m_webFrame;
177 virtual PassRefPtr<WebCore::Widget> createPlugin(const WebCore::IntSize&, 202
178 WebCore::HTMLPlugInElement*, 203 // True if makeRepresentation was called. We don't actually have a concept
179 const WebCore::KURL&, 204 // of a "representation", but we need to know when we're expected to have one.
180 const WTF::Vector<WebCore::String>&, 205 // See finishedLoading().
181 const WTF::Vector<WebCore::String>&, 206 bool m_hasRepresentation;
182 const WebCore::String&, 207
183 bool loadManually); 208 // Used to help track client redirects. When a provisional load starts, it
184 virtual void redirectDataToPlugin(WebCore::Widget* pluginWidget); 209 // has no redirects in its chain. But in the case of client redirects, we want
185 210 // to add that initial load as a redirect. When we get a new provisional load
186 virtual PassRefPtr<WebCore::Widget> createJavaAppletWidget( 211 // and the dest URL matches that load, we know that it was the result of a
187 const WebCore::IntSize&, 212 // previous client redirect and the source should be added as a redirect.
188 WebCore::HTMLAppletElement*, 213 // Both should be empty if unused.
189 const WebCore::KURL& /* base_url */, 214 WebCore::KURL m_expectedClientRedirectSrc;
190 const WTF::Vector<WebCore::String>& paramNames, 215 WebCore::KURL m_expectedClientRedirectDest;
191 const WTF::Vector<WebCore::String>& paramValues); 216
192 217 // Contains a pointer to the plugin widget.
193 virtual WebCore::ObjectContentType objectContentType( 218 RefPtr<WebPluginContainerImpl> m_pluginWidget;
194 const WebCore::KURL& url, const WebCore::String& mimeType); 219
195 virtual WebCore::String overrideMediaType() const; 220 // Indicates if we need to send over the initial notification to the plugin
196 221 // which specifies that the plugin should be ready to accept data.
197 virtual void didPerformFirstNavigation() const; 222 bool m_sentInitialResponseToPlugin;
198 223
199 virtual void registerForIconNotification(bool listen = true); 224 // The navigation policy to use for the next call to dispatchCreatePage.
200 225 WebNavigationPolicy m_nextNavigationPolicy;
201 private:
202 void makeDocumentView();
203
204 // Given a NavigationAction, determine the associated WebNavigationPolicy.
205 // For example, a middle click means "open in background tab".
206 static bool ActionSpecifiesNavigationPolicy(
207 const WebCore::NavigationAction& action,
208 WebKit::WebNavigationPolicy* policy);
209
210 // Called when a dummy back-forward navigation is intercepted.
211 void HandleBackForwardNavigation(const WebCore::KURL&);
212
213 PassOwnPtr<WebKit::WebPluginLoadObserver> GetPluginLoadObserver();
214
215 // The WebFrame that owns this object and manages its lifetime. Therefore,
216 // the web frame object is guaranteed to exist.
217 WebFrameImpl* webframe_;
218
219 // True if makeRepresentation was called. We don't actually have a concept
220 // of a "representation", but we need to know when we're expected to have one.
221 // See finishedLoading().
222 bool has_representation_;
223
224 // Used to help track client redirects. When a provisional load starts, it
225 // has no redirects in its chain. But in the case of client redirects, we want
226 // to add that initial load as a redirect. When we get a new provisional load
227 // and the dest URL matches that load, we know that it was the result of a
228 // previous client redirect and the source should be added as a redirect.
229 // Both should be empty if unused.
230 WebCore::KURL expected_client_redirect_src_;
231 WebCore::KURL expected_client_redirect_dest_;
232
233 // Contains a pointer to the plugin widget.
234 WTF::RefPtr<WebKit::WebPluginContainerImpl> plugin_widget_;
235
236 // Indicates if we need to send over the initial notification to the plugin
237 // which specifies that the plugin should be ready to accept data.
238 bool sent_initial_response_to_plugin_;
239
240 // The navigation policy to use for the next call to dispatchCreatePage.
241 WebKit::WebNavigationPolicy next_navigation_policy_;
242 }; 226 };
243 227
244 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ 228 } // namespace WebKit
229
230 #endif
OLDNEW
« no previous file with comments | « webkit/api/src/EditorClientImpl.cpp ('k') | webkit/api/src/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698