| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h
|
| index 7d8b1b55e4cee3d456978e1395ee1d312b6cf845..e65a9a5caac21ea35e64a38db29b57c69b6892db 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/macros.h"
|
| #include "net/base/proxy_delegate.h"
|
| #include "net/proxy/proxy_retry_info.h"
|
| +#include "net/proxy/proxy_server.h"
|
| #include "url/gurl.h"
|
|
|
| namespace net {
|
| @@ -19,7 +20,6 @@ class HttpResponseHeaders;
|
| class NetLog;
|
| class ProxyConfig;
|
| class ProxyInfo;
|
| -class ProxyServer;
|
| class ProxyService;
|
| class URLRequest;
|
| }
|
| @@ -71,6 +71,7 @@ class DataReductionProxyDelegate : public net::ProxyDelegate {
|
| net::ProxyServer* alternative_proxy_server) const override;
|
| void OnAlternativeProxyBroken(
|
| const net::ProxyServer& alternative_proxy_server) override;
|
| + net::ProxyServer GetDefaultAlternativeProxy() const override;
|
|
|
| // Protected so that it can be overridden during testing.
|
| // Returns true if |proxy_server| supports QUIC.
|
| @@ -85,10 +86,24 @@ class DataReductionProxyDelegate : public net::ProxyDelegate {
|
| QUIC_PROXY_STATUS_BOUNDARY
|
| };
|
|
|
| + // Availability status of data reduction proxy that supports 0-RTT QUIC.
|
| + // Protected so that the enum values are accessible for testing.
|
| + enum DefaultAlternativeProxyStatus {
|
| + DEFAULT_ALTERNATIVE_PROXY_STATUS_AVAILABLE,
|
| + DEFAULT_ALTERNATIVE_PROXY_STATUS_BROKEN,
|
| + DEFAULT_ALTERNATIVE_PROXY_STATUS_UNAVAILABLE,
|
| + DEFAULT_ALTERNATIVE_PROXY_STATUS_BOUNDARY,
|
| + };
|
| +
|
| private:
|
| // Records the availability status of data reduction proxy.
|
| void RecordQuicProxyStatus(QuicProxyStatus status) const;
|
|
|
| + // Records the availability status of data reduction proxy that supports 0-RTT
|
| + // QUIC.
|
| + void RecordGetDefaultAlternativeProxy(
|
| + DefaultAlternativeProxyStatus status) const;
|
| +
|
| const DataReductionProxyConfig* config_;
|
| const DataReductionProxyConfigurator* configurator_;
|
| DataReductionProxyEventCreator* event_creator_;
|
|
|