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_; |