Commit b96f638b authored by eric@webkit.org's avatar eric@webkit.org

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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3065d182
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:
2010-02-17 Kent Tamura <tkent@chromium.org>
Reviewed by Eric Seidel.
......
......@@ -241,7 +241,9 @@ public:
// Navigation ----------------------------------------------------------
// Reload the current document.
virtual void reload() = 0;
// True |ignoreCache| explicitly bypasses caches.
// False |ignoreCache| revalidates any existing cache entries.
virtual void reload(bool ignoreCache = false) = 0;
// Load the given URL.
virtual void loadRequest(const WebURLRequest&) = 0;
......
......@@ -713,12 +713,13 @@ bool WebFrameImpl::insertStyleText(
return success;
}
void WebFrameImpl::reload()
void WebFrameImpl::reload(bool ignoreCache)
{
m_frame->loader()->history()->saveDocumentAndScrollState();
stopLoading(); // Make sure existing activity stops.
m_frame->loader()->reload();
m_frame->loader()->reload(ignoreCache);
}
void WebFrameImpl::loadRequest(const WebURLRequest& request)
......
......@@ -103,7 +103,7 @@ public:
virtual v8::Local<v8::Context> mainWorldScriptContext() const;
#endif
virtual bool insertStyleText(const WebString& css, const WebString& id);
virtual void reload();
virtual void reload(bool ignoreCache);
virtual void loadRequest(const WebURLRequest&);
virtual void loadHistoryItem(const WebHistoryItem&);
virtual void loadData(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment