Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h

Issue 2777823002: Bypass DRP if a redirect cycle is detected (Closed)
Patch Set: ryansturm comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698