#ifndef CEF_LIBCEF_RENDERER_ALLOY_URL_LOADER_THROTTLE_PROVIDER_IMPL_H_
#define CEF_LIBCEF_RENDERER_ALLOY_URL_LOADER_THROTTLE_PROVIDER_IMPL_H_
#include <memory>
#include <vector>
#include "base/threading/thread_checker.h"
#include "third_party/blink/public/platform/url_loader_throttle_provider.h"
class CefURLLoaderThrottleProviderImpl
: public blink::URLLoaderThrottleProvider {
public:
explicit CefURLLoaderThrottleProviderImpl(
blink::URLLoaderThrottleProviderType type);
CefURLLoaderThrottleProviderImpl& operator=(
const CefURLLoaderThrottleProviderImpl&) = delete;
~CefURLLoaderThrottleProviderImpl() override;
std::unique_ptr<blink::URLLoaderThrottleProvider> Clone() override;
blink::WebVector<std::unique_ptr<blink::URLLoaderThrottle>> CreateThrottles(
int render_frame_id,
const blink::WebURLRequest& request) override;
void SetOnline(bool is_online) override;
private:
CefURLLoaderThrottleProviderImpl(
const CefURLLoaderThrottleProviderImpl& other);
blink::URLLoaderThrottleProviderType type_;
THREAD_CHECKER(thread_checker_);
};
#endif