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

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: errata 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 e95705aa75a09e295986986fc6b02b77bb268c18..9db618e19085fcfd9017f51d9f3e25a8efa08c19 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
@@ -22,9 +22,7 @@
class PrefService;
namespace net {
-class AuthChallengeInfo;
class HostPortPair;
-class HttpAuthCache;
class HttpNetworkSession;
class HttpResponseHeaders;
class URLFetcher;
@@ -127,21 +125,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();
@@ -275,12 +258,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