Changeset 89328 in webkit
- Timestamp:
- Jun 20, 2011 6:35:18 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r89326 r89328 1 2011-06-20 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Group load-initiating and stopping functions in FrameLoader.h 6 https://bugs.webkit.org/show_bug.cgi?id=63030 7 8 No function change, thus no tests. 9 10 * loader/FrameLoader.h: 11 1 12 2011-06-20 Sailesh Agrawal <sail@chromium.org> 2 13 -
trunk/Source/WebCore/loader/FrameLoader.h
r89312 r89328 104 104 IconController* icon() const { return &m_icon; } 105 105 106 // FIXME: This is not cool, people. There are too many different functions that all start loads.107 // We should aim to consolidate these into a smaller set of functions, and try to reuse more of108 // the logic by extracting common code paths.109 110 106 void prepareForLoadStart(); 111 107 void setupForReplace(); 112 108 void setupForReplaceByMIMEType(const String& newMIMEType); 113 109 110 // FIXME: These are all functions which start loads. We have too many. 114 111 void loadURLIntoChildFrame(const KURL&, const String& referer, Frame*); 115 116 112 void loadFrameRequest(const FrameLoadRequest&, bool lockHistory, bool lockBackForwardList, // Called by submitForm, calls loadPostRequest and loadURL. 117 113 PassRefPtr<Event>, PassRefPtr<FormState>, ReferrerPolicy); … … 120 116 void load(const ResourceRequest&, const SubstituteData&, bool lockHistory); // Called both by WebFrame and internally, calls load(DocumentLoader*). 121 117 void load(const ResourceRequest&, const String& frameName, bool lockHistory); // Called by WebPluginController. 122 123 118 #if ENABLE(WEB_ARCHIVE) || ENABLE(MHTML) 124 119 void loadArchive(PassRefPtr<Archive>); 125 120 #endif 121 unsigned long loadResourceSynchronously(const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data); 122 123 void changeLocation(PassRefPtr<SecurityOrigin>, const KURL&, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true, bool refresh = false); 124 void urlSelected(const KURL&, const String& target, PassRefPtr<Event>, bool lockHistory, bool lockBackForwardList, ReferrerPolicy); 125 void submitForm(PassRefPtr<FormSubmission>); 126 127 void reload(bool endToEndReload = false); 128 void reloadWithOverrideEncoding(const String& overrideEncoding); 129 130 void open(CachedFrameBase&); 131 void loadItem(HistoryItem*, FrameLoadType); 126 132 127 133 static void reportLocalLoadFailed(Frame*, const String& url); 128 134 129 unsigned long loadResourceSynchronously(const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data); 130 131 // Also not cool. 135 // FIXME: These are all functions which stop loads. We have too many. 132 136 void stopAllLoaders(ClearProvisionalItemPolicy = ShouldClearProvisionalItem); 133 137 void stopForUserCancel(bool deferCheckLoadComplete = false); 138 void stop(); 139 void stopLoading(UnloadEventPolicy); 140 bool closeURL(); 141 void cancelAndClear(); 142 void clear(bool clearWindowProperties = true, bool clearScriptObjects = true, bool clearFrameView = true); 134 143 135 144 bool isLoadingMainResource() const { return m_isLoadingMainResource; } … … 167 176 bool isHostedByObjectElement() const; 168 177 bool isLoadingMainFrame() const; 169 170 void reload(bool endToEndReload = false);171 void reloadWithOverrideEncoding(const String& overrideEncoding);172 178 173 179 void finishedLoadingDocument(DocumentLoader*); … … 185 191 186 192 void didFirstLayout(); 187 188 193 void didFirstVisuallyNonEmptyLayout(); 189 194 … … 203 208 204 209 void setDefersLoading(bool); 205 206 void changeLocation(PassRefPtr<SecurityOrigin>, const KURL&, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true, bool refresh = false);207 void urlSelected(const KURL&, const String& target, PassRefPtr<Event>, bool lockHistory, bool lockBackForwardList, ReferrerPolicy);208 209 void submitForm(PassRefPtr<FormSubmission>);210 211 void stop();212 void stopLoading(UnloadEventPolicy);213 bool closeURL();214 210 215 211 void didExplicitOpen(); … … 259 255 bool isComplete() const; 260 256 261 void cancelAndClear();262 263 257 void setTitle(const StringWithDirection&); 264 258 … … 274 268 275 269 bool shouldInterruptLoadForXFrameOptions(const String&, const KURL&); 276 277 void open(CachedFrameBase&);278 270 279 271 // FIXME: Should these really be public? … … 283 275 void clientRedirected(const KURL&, double delay, double fireDate, bool lockBackForwardList); 284 276 void clientRedirectCancelledOrFinished(bool cancelWithLoadInProgress); 285 void loadItem(HistoryItem*, FrameLoadType);286 277 287 278 // FIXME: This is public because this asynchronous callback from the FrameLoaderClient … … 293 284 294 285 static ObjectContentType defaultObjectContentType(const KURL&, const String& mimeType, bool shouldPreferPlugInsForImages); 295 296 void clear(bool clearWindowProperties = true, bool clearScriptObjects = true, bool clearFrameView = true);297 286 298 287 bool quickRedirectComing() const { return m_quickRedirectComing; }
Note: See TracChangeset
for help on using the changeset viewer.