diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/testing/noop_web_url_loader.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/testing/noop_web_url_loader.cc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/testing/noop_web_url_loader.cc b/chromium/third_party/blink/renderer/platform/testing/noop_web_url_loader.cc new file mode 100644 index 00000000000..a744186fff2 --- /dev/null +++ b/chromium/third_party/blink/renderer/platform/testing/noop_web_url_loader.cc @@ -0,0 +1,39 @@ +// Copyright 2021 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "third_party/blink/renderer/platform/testing/noop_web_url_loader.h" + +#include "services/network/public/cpp/resource_request.h" +#include "third_party/blink/public/platform/resource_load_info_notifier_wrapper.h" +#include "third_party/blink/public/platform/web_url_request_extra_data.h" + +namespace blink { + +void NoopWebURLLoader::LoadSynchronously( + std::unique_ptr<network::ResourceRequest> request, + scoped_refptr<WebURLRequestExtraData> url_request_extra_data, + bool pass_response_pipe_to_client, + bool no_mime_sniffing, + base::TimeDelta timeout_interval, + WebURLLoaderClient*, + WebURLResponse&, + absl::optional<WebURLError>&, + WebData&, + int64_t& encoded_data_length, + int64_t& encoded_body_length, + WebBlobInfo& downloaded_blob, + std::unique_ptr<blink::ResourceLoadInfoNotifierWrapper> + resource_load_info_notifier_wrapper) { + NOTREACHED(); +} + +void NoopWebURLLoader::LoadAsynchronously( + std::unique_ptr<network::ResourceRequest> request, + scoped_refptr<WebURLRequestExtraData> url_request_extra_data, + bool no_mime_sniffing, + std::unique_ptr<blink::ResourceLoadInfoNotifierWrapper> + resource_load_info_notifier_wrapper, + WebURLLoaderClient*) {} + +} // namespace blink |