| 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_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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 net::URLRequestContextGetter* url_request_context_getter_; | 237 net::URLRequestContextGetter* url_request_context_getter_; |
| 238 | 238 |
| 239 // An event that fires when it is time to refresh the Data Reduction Proxy | 239 // An event that fires when it is time to refresh the Data Reduction Proxy |
| 240 // configuration. | 240 // configuration. |
| 241 base::OneShotTimer config_refresh_timer_; | 241 base::OneShotTimer config_refresh_timer_; |
| 242 | 242 |
| 243 // A |net::URLFetcher| to retrieve the Data Reduction Proxy configuration. | 243 // A |net::URLFetcher| to retrieve the Data Reduction Proxy configuration. |
| 244 std::unique_ptr<net::URLFetcher> fetcher_; | 244 std::unique_ptr<net::URLFetcher> fetcher_; |
| 245 | 245 |
| 246 // Used to correlate the start and end of requests. | 246 // Used to correlate the start and end of requests. |
| 247 net::BoundNetLog bound_net_log_; | 247 net::NetLogWithSource net_log_with_source_; |
| 248 | 248 |
| 249 // Used to determine the latency in retrieving the Data Reduction Proxy | 249 // Used to determine the latency in retrieving the Data Reduction Proxy |
| 250 // configuration. | 250 // configuration. |
| 251 base::TimeTicks config_fetch_start_time_; | 251 base::TimeTicks config_fetch_start_time_; |
| 252 | 252 |
| 253 #if defined(OS_ANDROID) | 253 #if defined(OS_ANDROID) |
| 254 // Listens to the application transitions from foreground to background or | 254 // Listens to the application transitions from foreground to background or |
| 255 // vice versa. | 255 // vice versa. |
| 256 std::unique_ptr<base::android::ApplicationStatusListener> | 256 std::unique_ptr<base::android::ApplicationStatusListener> |
| 257 app_status_listener_; | 257 app_status_listener_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 277 base::TimeTicks last_ip_address_change_; | 277 base::TimeTicks last_ip_address_change_; |
| 278 | 278 |
| 279 // Enforce usage on the IO thread. | 279 // Enforce usage on the IO thread. |
| 280 base::ThreadChecker thread_checker_; | 280 base::ThreadChecker thread_checker_; |
| 281 | 281 |
| 282 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyConfigServiceClient); | 282 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyConfigServiceClient); |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace data_reduction_proxy | 285 } // namespace data_reduction_proxy |
| 286 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CON
FIG_SERVICE_CLIENT_H_ | 286 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CON
FIG_SERVICE_CLIENT_H_ |
| OLD | NEW |