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

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

Issue 279633003: Use non-static set_key interface on DataReductionProxySettings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 6 years, 7 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_auth_request_handler.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h b/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h
index 4de37575651e1f0dbb31556cee03feaab1aa73c8..312eed2b172614634d4ecbabd9252b1c4108cfe7 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h
@@ -15,6 +15,8 @@ class AuthChallengeInfo;
namespace data_reduction_proxy {
+class DataReductionProxySettings;
+
class DataReductionProxyAuthRequestHandler {
public:
enum TryHandleResult {
@@ -23,7 +25,10 @@ class DataReductionProxyAuthRequestHandler {
TRY_HANDLE_RESULT_CANCEL
};
- DataReductionProxyAuthRequestHandler();
+ // Constructs an authentication request handler and takes a pointer to a
+ // |settings| object, which must outlive the handler.
+ explicit DataReductionProxyAuthRequestHandler(
+ DataReductionProxySettings* settings);
virtual ~DataReductionProxyAuthRequestHandler();
// Returns |PROCEED| if the authentication challenge provided is one that the
@@ -65,6 +70,9 @@ class DataReductionProxyAuthRequestHandler {
// invalidation from repeat failures due to the client not being authorized.
static int64 auth_token_invalidation_timestamp_;
+ // Settings object for the data reduction proxy. Must outlive the handler.
+ DataReductionProxySettings* settings_;
+
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyAuthRequestHandler);
};

Powered by Google App Engine
This is Rietveld 408576698