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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_settings.h

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: Created 6 years, 6 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
Index: components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
index eb68f679e2016b17e944e0bd34e725afd511379e..c956792286c838276842f2151647cad06b216d37 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
@@ -21,9 +21,7 @@
class PrefService;
namespace net {
-class AuthChallengeInfo;
class HostPortPair;
-class HttpAuthCache;
class HttpNetworkSession;
class HttpResponseHeaders;
class URLFetcher;
@@ -122,21 +120,6 @@ class DataReductionProxySettings
void SetProxyConfigurator(
scoped_ptr<DataReductionProxyConfigurator> configurator);
- // If proxy authentication is compiled in, pre-cache authentication
- // keys for all configured proxies in |session|.
- static void InitDataReductionProxySession(
- net::HttpNetworkSession* session,
- const DataReductionProxyParams* params);
-
- // Returns true if |auth_info| represents an authentication challenge from
- // a compatible, configured proxy.
- bool IsAcceptableAuthChallenge(net::AuthChallengeInfo* auth_info);
-
- // Returns a UTF16 string suitable for use as an authentication token in
- // response to the challenge represented by |auth_info|. If the token can't
- // be correctly generated for |auth_info|, returns an empty UTF16 string.
- base::string16 GetTokenForAuthChallenge(net::AuthChallengeInfo* auth_info);
-
// Returns true if the proxy is enabled.
bool IsDataReductionProxyEnabled();
@@ -261,12 +244,6 @@ class DataReductionProxySettings
// NetworkChangeNotifier::IPAddressObserver:
virtual void OnIPAddressChanged() OVERRIDE;
- // Underlying implementation of InitDataReductionProxySession(), factored
- // out to be testable without creating a full HttpNetworkSession.
- static void InitDataReductionAuthentication(
- net::HttpAuthCache* auth_cache,
- const DataReductionProxyParams* params);
-
void OnProxyEnabledPrefChange();
void OnProxyAlternativeEnabledPrefChange();

Powered by Google App Engine
This is Rietveld 408576698