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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 149172: Modify ResourceFetcher to use WebURLLoader instead of ResourceHandle.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 19821)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -195,6 +195,7 @@
using WebCore::ResourceError;
using WebCore::ResourceHandle;
using WebCore::ResourceRequest;
+using WebCore::ResourceResponse;
using WebCore::VisibleSelection;
using WebCore::ScriptValue;
using WebCore::SecurityOrigin;
@@ -221,6 +222,8 @@
using WebKit::WebURLRequest;
using WebKit::WebURLResponse;
+using webkit_glue::AltErrorPageResourceFetcher;
+
// Key for a StatsCounter tracking how many WebFrames are active.
static const char* const kWebFrameActiveCount = "WebFrameActiveCount";
@@ -1566,9 +1569,16 @@
replace);
alt_error_page_fetcher_.reset(new AltErrorPageResourceFetcher(
- GetWebViewImpl(), error, this, error_page_url));
+ GetWebViewImpl(), this, error, error_page_url));
}
+void WebFrameImpl::DispatchWillSendRequest(WebURLRequest* request) {
+ ResourceResponse response;
+ frame_->loader()->client()->dispatchWillSendRequest(NULL, 0,
+ *webkit_glue::WebURLRequestToMutableResourceRequest(request),
+ response);
+}
+
void WebFrameImpl::ExecuteScript(const WebScriptSource& source) {
frame_->loader()->executeScript(
WebCore::ScriptSourceCode(

Powered by Google App Engine
This is Rietveld 408576698