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

Side by Side Diff: Source/WebCore/loader/FrameLoader.h

Issue 12090050: Revert 138962 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 months 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
« no previous file with comments | « Source/WebCore/loader/DocumentLoader.cpp ('k') | Source/WebCore/loader/FrameLoader.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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void submitForm(PassRefPtr<FormSubmission>); 116 void submitForm(PassRefPtr<FormSubmission>);
117 117
118 void reload(bool endToEndReload = false); 118 void reload(bool endToEndReload = false);
119 void reloadWithOverrideEncoding(const String& overrideEncoding); 119 void reloadWithOverrideEncoding(const String& overrideEncoding);
120 void reloadWithOverrideURL(const KURL& overrideUrl, bool endToEndReload = fa lse); 120 void reloadWithOverrideURL(const KURL& overrideUrl, bool endToEndReload = fa lse);
121 121
122 void open(CachedFrameBase&); 122 void open(CachedFrameBase&);
123 void loadItem(HistoryItem*, FrameLoadType); 123 void loadItem(HistoryItem*, FrameLoadType);
124 HistoryItem* requestedHistoryItem() const { return m_requestedHistoryItem.ge t(); } 124 HistoryItem* requestedHistoryItem() const { return m_requestedHistoryItem.ge t(); }
125 125
126 void retryAfterFailedCacheOnlyMainResourceLoad();
127
128 static void reportLocalLoadFailed(Frame*, const String& url); 126 static void reportLocalLoadFailed(Frame*, const String& url);
129 127
130 // FIXME: These are all functions which stop loads. We have too many. 128 // FIXME: These are all functions which stop loads. We have too many.
131 void stopAllLoaders(ClearProvisionalItemPolicy = ShouldClearProvisionalItem) ; 129 void stopAllLoaders(ClearProvisionalItemPolicy = ShouldClearProvisionalItem) ;
132 void stopForUserCancel(bool deferCheckLoadComplete = false); 130 void stopForUserCancel(bool deferCheckLoadComplete = false);
133 void stop(); 131 void stop();
134 void stopLoading(UnloadEventPolicy); 132 void stopLoading(UnloadEventPolicy);
135 bool closeURL(); 133 bool closeURL();
136 void cancelAndClear(); 134 void cancelAndClear();
137 // FIXME: clear() is trying to do too many things. We should break it down i nto smaller functions (ideally with fewer raw Boolean parameters). 135 // FIXME: clear() is trying to do too many things. We should break it down i nto smaller functions (ideally with fewer raw Boolean parameters).
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 PageHideDismissal = 2, 275 PageHideDismissal = 2,
278 UnloadDismissal = 3 276 UnloadDismissal = 3
279 }; 277 };
280 PageDismissalType pageDismissalEventBeingDispatched() const { return m_pageD ismissalEventBeingDispatched; } 278 PageDismissalType pageDismissalEventBeingDispatched() const { return m_pageD ismissalEventBeingDispatched; }
281 279
282 NetworkingContext* networkingContext() const; 280 NetworkingContext* networkingContext() const;
283 281
284 void reportMemoryUsage(MemoryObjectInfo*) const; 282 void reportMemoryUsage(MemoryObjectInfo*) const;
285 283
286 private: 284 private:
287 enum FormSubmissionCacheLoadPolicy {
288 MayAttemptCacheOnlyLoadForFormSubmissionItem,
289 MayNotAttemptCacheOnlyLoadForFormSubmissionItem
290 };
291
292 bool allChildrenAreComplete() const; // immediate children, not all descenda nts 285 bool allChildrenAreComplete() const; // immediate children, not all descenda nts
293 286
294 void checkTimerFired(Timer<FrameLoader>*); 287 void checkTimerFired(Timer<FrameLoader>*);
295 288
296 void loadSameDocumentItem(HistoryItem*); 289 void loadSameDocumentItem(HistoryItem*);
297 void loadDifferentDocumentItem(HistoryItem*, FrameLoadType, FormSubmissionCa cheLoadPolicy); 290 void loadDifferentDocumentItem(HistoryItem*, FrameLoadType);
298 291
299 void loadProvisionalItemFromCachedPage(); 292 void loadProvisionalItemFromCachedPage();
300 293
301 void updateFirstPartyForCookies(); 294 void updateFirstPartyForCookies();
302 void setFirstPartyForCookies(const KURL&); 295 void setFirstPartyForCookies(const KURL&);
303 296
304 void addExtraFieldsToRequest(ResourceRequest&, FrameLoadType, bool isMainRes ource); 297 void addExtraFieldsToRequest(ResourceRequest&, FrameLoadType, bool isMainRes ource);
305 298
306 void clearProvisionalLoad(); 299 void clearProvisionalLoad();
307 void transitionToCommitted(PassRefPtr<CachedPage>); 300 void transitionToCommitted(PassRefPtr<CachedPage>);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // the frame name references a frame different from the openerFrame, e.g. when i t is 440 // the frame name references a frame different from the openerFrame, e.g. when i t is
448 // "_self" or "_parent". 441 // "_self" or "_parent".
449 // 442 //
450 // FIXME: Consider making this function part of an appropriate class (not FrameL oader) 443 // FIXME: Consider making this function part of an appropriate class (not FrameL oader)
451 // and moving it to a more appropriate location. 444 // and moving it to a more appropriate location.
452 Frame* createWindow(Frame* openerFrame, Frame* lookupFrame, const FrameLoadReque st&, const WindowFeatures&, bool& created); 445 Frame* createWindow(Frame* openerFrame, Frame* lookupFrame, const FrameLoadReque st&, const WindowFeatures&, bool& created);
453 446
454 } // namespace WebCore 447 } // namespace WebCore
455 448
456 #endif // FrameLoader_h 449 #endif // FrameLoader_h
OLDNEW
« no previous file with comments | « Source/WebCore/loader/DocumentLoader.cpp ('k') | Source/WebCore/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698