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

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

Issue 1024553009: Add the ability to use DataReductionProxyParams from DataReductionProxyConfigServiceClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client_control_local
Patch Set: Forgot implementation of DataReductionProxyMutableConfigValues::IsDataReductionProxy in downstream … Created 5 years, 9 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/core/browser/data_reduction_proxy_request_options.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
index 5a0b3b0092e84bac90a365571bce22c0f77c841d..8d6c289ce7d9c2e9066191685d6cb392be344a06 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
@@ -125,6 +125,10 @@ class DataReductionProxyRequestOptions {
// Virtualized for testing.
virtual void PopulateConfigResponse(base::DictionaryValue* response) const;
+ // Sets the credentials for sending to the Data Reduction Proxy.
+ void SetCredentials(const std::string& session,
+ const std::string& credentials);
+
protected:
void SetHeader(net::HttpRequestHeaders* headers);
@@ -211,6 +215,10 @@ class DataReductionProxyRequestOptions {
// never used for more than twenty-four hours.
base::Time credentials_expiration_time_;
+ // Whether the authentication headers are sourced by |this| or injected via
+ // |SetCredentials|.
+ bool use_assigned_credentials_;
+
DataReductionProxyConfig* data_reduction_proxy_config_;
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698