diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h b/chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h index 45d418e8766..0181a0889f9 100644 --- a/chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h +++ b/chromium/third_party/blink/renderer/platform/testing/weburl_loader_mock.h @@ -39,20 +39,32 @@ class WebURLLoaderMock : public WebURLLoader { const base::Optional<WebURLError>& error); // Simulates the redirect being served. - WebURL ServeRedirect(const WebURLRequest& request, + WebURL ServeRedirect(const WebString& method, const WebURLResponse& redirect_response); // WebURLLoader methods: - void LoadSynchronously(const WebURLRequest&, - WebURLLoaderClient* client, - WebURLResponse&, - base::Optional<WebURLError>&, - WebData&, - int64_t& encoded_data_length, - int64_t& encoded_body_length, - blink::WebBlobInfo& downloaded_blob) override; - void LoadAsynchronously(const WebURLRequest& request, - WebURLLoaderClient* client) override; + void LoadSynchronously( + std::unique_ptr<network::ResourceRequest> request, + scoped_refptr<WebURLRequest::ExtraData> request_extra_data, + int requestor_id, + bool download_to_network_cache_only, + bool pass_response_pipe_to_client, + bool no_mime_sniffing, + base::TimeDelta timeout_interval, + WebURLLoaderClient* client, + WebURLResponse&, + base::Optional<WebURLError>&, + WebData&, + int64_t& encoded_data_length, + int64_t& encoded_body_length, + blink::WebBlobInfo& downloaded_blob) override; + void LoadAsynchronously( + std::unique_ptr<network::ResourceRequest> request, + scoped_refptr<WebURLRequest::ExtraData> request_extra_data, + int requestor_id, + bool download_to_network_cache_only, + bool no_mime_sniffing, + WebURLLoaderClient* client) override; void SetDefersLoading(bool defer) override; void DidChangePriority(WebURLRequest::Priority new_priority, int intra_priority_value) override; |