Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h

Issue 2453973003: Add a QUIC proxy server to the list of QUIC servers supported at start up (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698