Changeset 81183 in webkit
- Timestamp:
- Mar 15, 2011 3:31:33 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r81175 r81183 1 2011-03-15 Michael Nordman <michaeln@google.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 When initiating a main resource load, let the application cache 6 know which frame the load is being conducted for. This patch doesn't 7 resolve the following bug, but the additional WebFrame parameter 8 should provide the chromium port with enough info to pick the 9 "most appropiate" cached resource. 10 https://bugs.webkit.org/show_bug.cgi?id=55505 11 12 Also fixup a stale comment in stopLoadingInFrame. 13 14 * public/WebApplicationCacheHost.h: 15 (WebKit::WebApplicationCacheHost::willStartMainResourceRequest): 16 * src/ApplicationCacheHost.cpp: 17 (WebCore::ApplicationCacheHost::maybeLoadMainResource): 18 (WebCore::ApplicationCacheHost::stopLoadingInFrame): 19 1 20 2011-03-15 Tony Chang <tony@chromium.org> 2 21 -
trunk/Source/WebKit/chromium/public/WebApplicationCacheHost.h
r63440 r81183 39 39 40 40 class WebApplicationCacheHostClient; 41 class WebFrame; 41 42 class WebURL; 42 43 class WebURLRequest; … … 74 75 75 76 // Called for every request made within the context. 76 virtual void willStartMainResourceRequest(WebURLRequest& ) {}77 virtual void willStartMainResourceRequest(WebURLRequest& r, const WebFrame*) { willStartMainResourceRequest(r); } 77 78 virtual void willStartSubResourceRequest(WebURLRequest&) { } 79 80 virtual void willStartMainResourceRequest(WebURLRequest&) { } // DEPRECATED, remove after derived classes have caught up. 78 81 79 82 // One or the other selectCache methods is called after having parsed the <html> tag. -
trunk/Source/WebKit/chromium/src/ApplicationCacheHost.cpp
r75604 r81183 43 43 #include "ProgressEvent.h" 44 44 #include "Settings.h" 45 #include "WebFrameImpl.h" 45 46 #include "WebURL.h" 46 47 #include "WebURLError.h" … … 82 83 if (m_internal->m_outerHost) { 83 84 WrappedResourceRequest wrapped(request); 84 m_internal->m_outerHost->willStartMainResourceRequest(wrapped );85 m_internal->m_outerHost->willStartMainResourceRequest(wrapped, WebFrameImpl::fromFrame(m_documentLoader->frame())); 85 86 } else 86 87 m_internal.clear(); … … 260 261 void ApplicationCacheHost::stopLoadingInFrame(Frame* frame) 261 262 { 262 // FIXME: Implement this method.263 // N/A to the chromium port 263 264 } 264 265
Note: See TracChangeset
for help on using the changeset viewer.