2019-07-16 19:59:21 +02:00
|
|
|
diff --git content/renderer/loader/web_url_loader_impl.h content/renderer/loader/web_url_loader_impl.h
|
2020-03-30 22:13:42 +02:00
|
|
|
index 7b00faa7376d..62345e79ebac 100644
|
2019-07-16 19:59:21 +02:00
|
|
|
--- content/renderer/loader/web_url_loader_impl.h
|
|
|
|
+++ content/renderer/loader/web_url_loader_impl.h
|
2020-03-30 22:13:42 +02:00
|
|
|
@@ -88,6 +88,7 @@ class CONTENT_EXPORT WebURLLoaderImpl : public blink::WebURLLoader {
|
|
|
|
bool download_to_network_cache_only,
|
|
|
|
bool no_mime_sniffing,
|
|
|
|
blink::WebURLLoaderClient* client) override;
|
2019-07-16 19:59:21 +02:00
|
|
|
+ void Cancel() override;
|
|
|
|
void SetDefersLoading(bool value) override;
|
|
|
|
void DidChangePriority(blink::WebURLRequest::Priority new_priority,
|
|
|
|
int intra_priority_value) override;
|
2020-03-30 22:13:42 +02:00
|
|
|
@@ -98,8 +99,6 @@ class CONTENT_EXPORT WebURLLoaderImpl : public blink::WebURLLoader {
|
2019-07-16 19:59:21 +02:00
|
|
|
class RequestPeerImpl;
|
|
|
|
class SinkPeer;
|
|
|
|
|
|
|
|
- void Cancel();
|
|
|
|
-
|
|
|
|
scoped_refptr<Context> context_;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl);
|
|
|
|
diff --git third_party/blink/public/platform/web_url_loader.h third_party/blink/public/platform/web_url_loader.h
|
2020-03-30 22:13:42 +02:00
|
|
|
index 7f1b0efcdff9..24b5561d24d8 100644
|
2019-07-16 19:59:21 +02:00
|
|
|
--- third_party/blink/public/platform/web_url_loader.h
|
|
|
|
+++ third_party/blink/public/platform/web_url_loader.h
|
2020-03-30 22:13:42 +02:00
|
|
|
@@ -91,6 +91,10 @@ class WebURLLoader {
|
|
|
|
bool no_mime_sniffing,
|
|
|
|
WebURLLoaderClient*) = 0;
|
2019-07-16 19:59:21 +02:00
|
|
|
|
|
|
|
+ // Cancels an asynchronous load. This will appear as a load error to
|
|
|
|
+ // the client.
|
|
|
|
+ virtual void Cancel() {}
|
|
|
|
+
|
|
|
|
// Suspends/resumes an asynchronous load.
|
|
|
|
virtual void SetDefersLoading(bool) = 0;
|
|
|
|
|