Changeset 54928 in webkit


Ignore:
Timestamp:
Feb 17, 2010 9:38:26 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-17 Evan Martin <evan@chromium.org>

Reviewed by Eric Seidel.

[chromium] expose cache-bypass flag in reload() API
https://bugs.webkit.org/show_bug.cgi?id=34969

This flag is used to force a reload to ignore caches.
(Aka "shift-reload".)

  • public/WebFrame.h:
  • src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::reload):
  • src/WebFrameImpl.h:
Location:
trunk/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r54923 r54928  
     12010-02-17  Evan Martin  <evan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [chromium] expose cache-bypass flag in reload() API
     6        https://bugs.webkit.org/show_bug.cgi?id=34969
     7
     8        This flag is used to force a reload to ignore caches.
     9        (Aka "shift-reload".)
     10
     11        * public/WebFrame.h:
     12        * src/WebFrameImpl.cpp:
     13        (WebKit::WebFrameImpl::reload):
     14        * src/WebFrameImpl.h:
     15
    1162010-02-17  Kent Tamura  <tkent@chromium.org>
    217
  • trunk/WebKit/chromium/public/WebFrame.h

    r54270 r54928  
    242242
    243243    // Reload the current document.
    244     virtual void reload() = 0;
     244    // True |ignoreCache| explicitly bypasses caches.
     245    // False |ignoreCache| revalidates any existing cache entries.
     246    virtual void reload(bool ignoreCache = false) = 0;
    245247
    246248    // Load the given URL.
  • trunk/WebKit/chromium/src/WebFrameImpl.cpp

    r54270 r54928  
    714714}
    715715
    716 void WebFrameImpl::reload()
     716void WebFrameImpl::reload(bool ignoreCache)
    717717{
    718718    m_frame->loader()->history()->saveDocumentAndScrollState();
    719719
    720720    stopLoading();  // Make sure existing activity stops.
    721     m_frame->loader()->reload();
     721
     722    m_frame->loader()->reload(ignoreCache);
    722723}
    723724
  • trunk/WebKit/chromium/src/WebFrameImpl.h

    r54270 r54928  
    104104#endif
    105105    virtual bool insertStyleText(const WebString& css, const WebString& id);
    106     virtual void reload();
     106    virtual void reload(bool ignoreCache);
    107107    virtual void loadRequest(const WebURLRequest&);
    108108    virtual void loadHistoryItem(const WebHistoryItem&);
Note: See TracChangeset for help on using the changeset viewer.