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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2867673003: Have content::ResourceFetcher use FetchContext::CreateURLLoader (Closed)
Patch Set: fix Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 32d805f9a5ef089148ec60050f926c431ad18fe0..8fa7d250962b702c57bef982c3dae58d19f6f036 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -180,6 +180,7 @@
#include "platform/graphics/skia/SkiaUtils.h"
#include "platform/heap/Handle.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
+#include "platform/loader/fetch/FetchContext.h"
#include "platform/loader/fetch/ResourceFetcher.h"
#include "platform/loader/fetch/ResourceRequest.h"
#include "platform/loader/fetch/SubstituteData.h"
@@ -200,6 +201,7 @@
#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebSize.h"
#include "public/platform/WebURLError.h"
+#include "public/platform/WebURLLoader.h"
#include "public/platform/WebVector.h"
#include "public/web/WebAssociatedURLLoaderOptions.h"
#include "public/web/WebAutofillClient.h"
@@ -2430,6 +2432,16 @@ WebFrameWidgetBase* WebLocalFrameImpl::FrameWidget() const {
return frame_widget_;
}
+std::unique_ptr<WebURLLoader> WebLocalFrameImpl::CreateURLLoader() {
+ DCHECK(frame_);
+ Document* document = frame_->GetDocument();
+ DCHECK(document);
+ ResourceFetcher* fetcher = document->Fetcher();
+ DCHECK(fetcher);
+
+ return fetcher->Context().CreateURLLoader();
+}
+
void WebLocalFrameImpl::CopyImageAt(const WebPoint& pos_in_viewport) {
HitTestResult result = HitTestResultForVisualViewportPos(pos_in_viewport);
if (!isHTMLCanvasElement(result.InnerNodeOrImageMapImage()) &&
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698