Changeset 89328 in webkit


Ignore:
Timestamp:
Jun 20, 2011 6:35:18 PM (13 years ago)
Author:
eric@webkit.org
Message:

2011-06-20 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Group load-initiating and stopping functions in FrameLoader.h
https://bugs.webkit.org/show_bug.cgi?id=63030

No function change, thus no tests.

  • loader/FrameLoader.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89326 r89328  
     12011-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
    1122011-06-20  Sailesh Agrawal  <sail@chromium.org>
    213
  • trunk/Source/WebCore/loader/FrameLoader.h

    r89312 r89328  
    104104    IconController* icon() const { return &m_icon; }
    105105
    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 of
    108     // the logic by extracting common code paths.
    109 
    110106    void prepareForLoadStart();
    111107    void setupForReplace();
    112108    void setupForReplaceByMIMEType(const String& newMIMEType);
    113109
     110    // FIXME: These are all functions which start loads. We have too many.
    114111    void loadURLIntoChildFrame(const KURL&, const String& referer, Frame*);
    115 
    116112    void loadFrameRequest(const FrameLoadRequest&, bool lockHistory, bool lockBackForwardList,  // Called by submitForm, calls loadPostRequest and loadURL.
    117113        PassRefPtr<Event>, PassRefPtr<FormState>, ReferrerPolicy);
     
    120116    void load(const ResourceRequest&, const SubstituteData&, bool lockHistory);                 // Called both by WebFrame and internally, calls load(DocumentLoader*).
    121117    void load(const ResourceRequest&, const String& frameName, bool lockHistory);               // Called by WebPluginController.
    122 
    123118#if ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)
    124119    void loadArchive(PassRefPtr<Archive>);
    125120#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);
    126132
    127133    static void reportLocalLoadFailed(Frame*, const String& url);
    128134
    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.
    132136    void stopAllLoaders(ClearProvisionalItemPolicy = ShouldClearProvisionalItem);
    133137    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);
    134143
    135144    bool isLoadingMainResource() const { return m_isLoadingMainResource; }
     
    167176    bool isHostedByObjectElement() const;
    168177    bool isLoadingMainFrame() const;
    169 
    170     void reload(bool endToEndReload = false);
    171     void reloadWithOverrideEncoding(const String& overrideEncoding);
    172178
    173179    void finishedLoadingDocument(DocumentLoader*);
     
    185191
    186192    void didFirstLayout();
    187 
    188193    void didFirstVisuallyNonEmptyLayout();
    189194
     
    203208
    204209    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();
    214210
    215211    void didExplicitOpen();
     
    259255    bool isComplete() const;
    260256
    261     void cancelAndClear();
    262 
    263257    void setTitle(const StringWithDirection&);
    264258
     
    274268
    275269    bool shouldInterruptLoadForXFrameOptions(const String&, const KURL&);
    276 
    277     void open(CachedFrameBase&);
    278270
    279271    // FIXME: Should these really be public?
     
    283275    void clientRedirected(const KURL&, double delay, double fireDate, bool lockBackForwardList);
    284276    void clientRedirectCancelledOrFinished(bool cancelWithLoadInProgress);
    285     void loadItem(HistoryItem*, FrameLoadType);
    286277
    287278    // FIXME: This is public because this asynchronous callback from the FrameLoaderClient
     
    293284
    294285    static ObjectContentType defaultObjectContentType(const KURL&, const String& mimeType, bool shouldPreferPlugInsForImages);
    295 
    296     void clear(bool clearWindowProperties = true, bool clearScriptObjects = true, bool clearFrameView = true);
    297286
    298287    bool quickRedirectComing() const { return m_quickRedirectComing; }
Note: See TracChangeset for help on using the changeset viewer.