OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_METRIC
S_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRIC
S_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRIC
S_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_METRIC
S_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 class ProxyConfig; | 11 class ProxyConfig; |
12 class URLRequest; | 12 class URLRequest; |
13 } | 13 } |
14 | 14 |
15 class PrefService; | |
16 | |
17 namespace data_reduction_proxy { | 15 namespace data_reduction_proxy { |
18 | 16 |
19 class DataReductionProxyConfig; | 17 class DataReductionProxyConfig; |
20 | 18 |
21 typedef std::vector<long long> ContentLengthList; | 19 typedef std::vector<long long> ContentLengthList; |
22 | 20 |
23 // A bypass delay more than this is treated as a long delay. | 21 // A bypass delay more than this is treated as a long delay. |
24 const int kLongBypassDelayInSeconds = 30 * 60; | 22 const int kLongBypassDelayInSeconds = 30 * 60; |
25 | 23 |
26 // The number of days of bandwidth usage statistics that are tracked. | 24 // The number of days of bandwidth usage statistics that are tracked. |
(...skipping 20 matching lines...) Expand all Loading... |
47 | 45 |
48 // Returns DataReductionProxyRequestType for |request|. | 46 // Returns DataReductionProxyRequestType for |request|. |
49 DataReductionProxyRequestType GetDataReductionProxyRequestType( | 47 DataReductionProxyRequestType GetDataReductionProxyRequestType( |
50 const net::URLRequest& request, | 48 const net::URLRequest& request, |
51 const net::ProxyConfig& data_reduction_proxy_config, | 49 const net::ProxyConfig& data_reduction_proxy_config, |
52 const DataReductionProxyConfig& config); | 50 const DataReductionProxyConfig& config); |
53 | 51 |
54 } // namespace data_reduction_proxy | 52 } // namespace data_reduction_proxy |
55 | 53 |
56 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MET
RICS_H_ | 54 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MET
RICS_H_ |
OLD | NEW |