OLD | NEW |
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_MUTABL
E_CONFIG_VALUES_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MUTABL
E_CONFIG_VALUES_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MUTABL
E_CONFIG_VALUES_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MUTABL
E_CONFIG_VALUES_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Updates |proxies_for_http_| with the provided values. | 34 // Updates |proxies_for_http_| with the provided values. |
35 // Virtual for testing. | 35 // Virtual for testing. |
36 virtual void UpdateValues( | 36 virtual void UpdateValues( |
37 const std::vector<DataReductionProxyServer>& proxies_for_http); | 37 const std::vector<DataReductionProxyServer>& proxies_for_http); |
38 | 38 |
39 // Invalidates |this| by clearing the stored Data Reduction Proxy servers. | 39 // Invalidates |this| by clearing the stored Data Reduction Proxy servers. |
40 void Invalidate(); | 40 void Invalidate(); |
41 | 41 |
42 // Overrides of |DataReductionProxyConfigValues| | 42 // Overrides of |DataReductionProxyConfigValues| |
43 bool promo_allowed() const override; | |
44 bool holdback() const override; | |
45 const std::vector<DataReductionProxyServer>& proxies_for_http() | 43 const std::vector<DataReductionProxyServer>& proxies_for_http() |
46 const override; | 44 const override; |
47 const GURL& secure_proxy_check_url() const override; | 45 const GURL& secure_proxy_check_url() const override; |
48 | 46 |
49 protected: | 47 protected: |
50 DataReductionProxyMutableConfigValues(); | 48 DataReductionProxyMutableConfigValues(); |
51 | 49 |
52 private: | 50 private: |
53 bool promo_allowed_; | |
54 bool holdback_; | |
55 std::vector<DataReductionProxyServer> proxies_for_http_; | 51 std::vector<DataReductionProxyServer> proxies_for_http_; |
56 GURL secure_proxy_check_url_; | 52 GURL secure_proxy_check_url_; |
57 | 53 |
58 // Permits use of locally specified Data Reduction Proxy servers instead of | 54 // Permits use of locally specified Data Reduction Proxy servers instead of |
59 // ones specified from the Data Saver API. | 55 // ones specified from the Data Saver API. |
60 bool use_override_proxies_for_http_; | 56 bool use_override_proxies_for_http_; |
61 std::vector<DataReductionProxyServer> override_proxies_for_http_; | 57 std::vector<DataReductionProxyServer> override_proxies_for_http_; |
62 | 58 |
63 // Enforce usage on the IO thread. | 59 // Enforce usage on the IO thread. |
64 base::ThreadChecker thread_checker_; | 60 base::ThreadChecker thread_checker_; |
65 | 61 |
66 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMutableConfigValues); | 62 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMutableConfigValues); |
67 }; | 63 }; |
68 | 64 |
69 } // namespace data_reduction_proxy | 65 } // namespace data_reduction_proxy |
70 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MUT
ABLE_CONFIG_VALUES_H_ | 66 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MUT
ABLE_CONFIG_VALUES_H_ |
OLD | NEW |