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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h

Issue 1076853003: Refactor net::BackoffEntry to not require subclassing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address pneubeck's review comments Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG _SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG _SERVICE_CLIENT_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG _SERVICE_CLIENT_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG _SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Virtual for testing. 54 // Virtual for testing.
55 virtual net::BackoffEntry* GetBackoffEntry(); 55 virtual net::BackoffEntry* GetBackoffEntry();
56 56
57 // Sets a timer to determine when to next refresh the Data Reduction Proxy 57 // Sets a timer to determine when to next refresh the Data Reduction Proxy
58 // configuration. 58 // configuration.
59 // Virtual for testing. 59 // Virtual for testing.
60 virtual void SetConfigRefreshTimer(const base::TimeDelta& delay); 60 virtual void SetConfigRefreshTimer(const base::TimeDelta& delay);
61 61
62 // Returns the current time. 62 // Returns the current time.
63 // Virtual for testing. 63 // Virtual for testing.
64 virtual base::Time Now() const; 64 virtual base::Time Now();
65 65
66 // Constructs a synthetic response based on |params_|. 66 // Constructs a synthetic response based on |params_|.
67 // Virtual for testing. 67 // Virtual for testing.
68 virtual std::string ConstructStaticResponse() const; 68 virtual std::string ConstructStaticResponse() const;
69 69
70 private: 70 private:
71 FRIEND_TEST_ALL_PREFIXES(DataReductionProxyConfigServiceClientTest, 71 FRIEND_TEST_ALL_PREFIXES(DataReductionProxyConfigServiceClientTest,
72 TestConstructStaticResponse); 72 TestConstructStaticResponse);
73 friend class TestDataReductionProxyConfigServiceClient; 73 friend class TestDataReductionProxyConfigServiceClient;
74 74
(...skipping 18 matching lines...) Expand all
93 config_refresh_timer_; 93 config_refresh_timer_;
94 94
95 // Enforce usage on the IO thread. 95 // Enforce usage on the IO thread.
96 base::ThreadChecker thread_checker_; 96 base::ThreadChecker thread_checker_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyConfigServiceClient); 98 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyConfigServiceClient);
99 }; 99 };
100 100
101 } // namespace data_reduction_proxy 101 } // namespace data_reduction_proxy
102 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CON FIG_SERVICE_CLIENT_H_ 102 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CON FIG_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698