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 <stdint.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 class ProxyConfig; | 14 class ProxyConfig; |
14 class URLRequest; | 15 class URLRequest; |
15 } | 16 } |
16 | 17 |
17 class PrefService; | 18 class PrefService; |
18 | 19 |
19 namespace data_reduction_proxy { | 20 namespace data_reduction_proxy { |
20 | 21 |
(...skipping 28 matching lines...) Expand all Loading... |
49 | 50 |
50 // Returns DataReductionProxyRequestType for |request|. | 51 // Returns DataReductionProxyRequestType for |request|. |
51 DataReductionProxyRequestType GetDataReductionProxyRequestType( | 52 DataReductionProxyRequestType GetDataReductionProxyRequestType( |
52 const net::URLRequest& request, | 53 const net::URLRequest& request, |
53 const net::ProxyConfig& data_reduction_proxy_config, | 54 const net::ProxyConfig& data_reduction_proxy_config, |
54 const DataReductionProxyConfig& config); | 55 const DataReductionProxyConfig& config); |
55 | 56 |
56 // Returns |received_content_length| as adjusted original content length if | 57 // Returns |received_content_length| as adjusted original content length if |
57 // |original_content_length| has the invalid value (-1) or |request_type| | 58 // |original_content_length| has the invalid value (-1) or |request_type| |
58 // is not |VIA_DATA_REDUCTION_PROXY|. | 59 // is not |VIA_DATA_REDUCTION_PROXY|. |
59 int64 GetAdjustedOriginalContentLength( | 60 int64_t GetAdjustedOriginalContentLength( |
60 DataReductionProxyRequestType request_type, | 61 DataReductionProxyRequestType request_type, |
61 int64 original_content_length, | 62 int64_t original_content_length, |
62 int64 received_content_length); | 63 int64_t received_content_length); |
63 | 64 |
64 } // namespace data_reduction_proxy | 65 } // namespace data_reduction_proxy |
65 | 66 |
66 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MET
RICS_H_ | 67 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_MET
RICS_H_ |
OLD | NEW |