| 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()) &&
|
|
|