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_BYPASS
_STATS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYPASS
_STATS_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYPASS
_STATS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYPASS
_STATS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 bool is_primary, | 38 bool is_primary, |
39 bool bypass_all, | 39 bool bypass_all, |
40 const net::ProxyServer& proxy_server, | 40 const net::ProxyServer& proxy_server, |
41 DataReductionProxyBypassType bypass_type); | 41 DataReductionProxyBypassType bypass_type); |
42 | 42 |
43 // For the given response |headers| that are expected to include the data | 43 // For the given response |headers| that are expected to include the data |
44 // reduction proxy via header, records response code UMA if the data reduction | 44 // reduction proxy via header, records response code UMA if the data reduction |
45 // proxy via header is not present. | 45 // proxy via header is not present. |
46 static void DetectAndRecordMissingViaHeaderResponseCode( | 46 static void DetectAndRecordMissingViaHeaderResponseCode( |
47 bool is_primary, | 47 bool is_primary, |
48 const net::HttpResponseHeaders* headers); | 48 const net::HttpResponseHeaders& headers); |
49 | 49 |
50 // |config| outlives this class instance. |unreachable_callback| provides a | 50 // |config| outlives this class instance. |unreachable_callback| provides a |
51 // hook to inform the user that the Data Reduction Proxy is unreachable. | 51 // hook to inform the user that the Data Reduction Proxy is unreachable. |
52 // |config| must not be null. | 52 // |config| must not be null. |
53 DataReductionProxyBypassStats( | 53 DataReductionProxyBypassStats( |
54 DataReductionProxyConfig* config, | 54 DataReductionProxyConfig* config, |
55 UnreachableCallback unreachable_callback); | 55 UnreachableCallback unreachable_callback); |
56 | 56 |
57 ~DataReductionProxyBypassStats() override; | 57 ~DataReductionProxyBypassStats() override; |
58 | 58 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 bool unavailable_; | 159 bool unavailable_; |
160 | 160 |
161 base::ThreadChecker thread_checker_; | 161 base::ThreadChecker thread_checker_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyBypassStats); | 163 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyBypassStats); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace data_reduction_proxy | 166 } // namespace data_reduction_proxy |
167 | 167 |
168 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYP
ASS_STATS_H_ | 168 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYP
ASS_STATS_H_ |
OLD | NEW |