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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.h

Issue 568893002: Trigger data reduction proxy unreachable message via on proxy fall back. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed bengr's comments Created 6 years, 3 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_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // the proxy that matches. |proxy_info.proxy_servers.second| will contain the 119 // the proxy that matches. |proxy_info.proxy_servers.second| will contain the
120 // name of the data reduction proxy server that would be used if 120 // name of the data reduction proxy server that would be used if
121 // |proxy_info.proxy_server.first| is bypassed, if one exists. In addition, 121 // |proxy_info.proxy_server.first| is bypassed, if one exists. In addition,
122 // |proxy_info| will note if the proxy was a fallback, an alternative, or a 122 // |proxy_info| will note if the proxy was a fallback, an alternative, or a
123 // proxy for ssl; these are not mutually exclusive. |proxy_info| can be NULL 123 // proxy for ssl; these are not mutually exclusive. |proxy_info| can be NULL
124 // if the caller isn't interested in its values. Virtual for testing. 124 // if the caller isn't interested in its values. Virtual for testing.
125 virtual bool IsDataReductionProxy( 125 virtual bool IsDataReductionProxy(
126 const net::HostPortPair& host_port_pair, 126 const net::HostPortPair& host_port_pair,
127 DataReductionProxyTypeInfo* proxy_info) const; 127 DataReductionProxyTypeInfo* proxy_info) const;
128 128
129 // Returns true if this request will be sent through the data request proxy
130 // based on applying the param rules to the URL. We do not check bad proxy
131 // list.
132 virtual bool IsDataReductionProxyEligible(const net::URLRequest* request);
133
134 // Returns true if this request would be bypassed by the data request proxy 129 // Returns true if this request would be bypassed by the data request proxy
135 // based on applying the |data_reduction_proxy_config| param rules to the 130 // based on applying the |data_reduction_proxy_config| param rules to the
136 // request URL. 131 // request URL.
137 bool IsBypassedByDataReductionProxyLocalRules( 132 bool IsBypassedByDataReductionProxyLocalRules(
138 const net::URLRequest& request, 133 const net::URLRequest& request,
139 const net::ProxyConfig& data_reduction_proxy_config) const; 134 const net::ProxyConfig& data_reduction_proxy_config) const;
140 135
141 // Checks if all configured data reduction proxies are in the retry map. 136 // Checks if all configured data reduction proxies are in the retry map.
142 // Returns true if the request is bypassed by all configured data reduction 137 // Returns true if the request is bypassed by all configured data reduction
143 // proxies and returns the bypass delay in delay_seconds (if not NULL). If 138 // proxies and returns the bypass delay in delay_seconds (if not NULL). If
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 bool fallback_allowed_; 279 bool fallback_allowed_;
285 bool alt_allowed_; 280 bool alt_allowed_;
286 bool promo_allowed_; 281 bool promo_allowed_;
287 bool holdback_; 282 bool holdback_;
288 283
289 bool configured_on_command_line_; 284 bool configured_on_command_line_;
290 }; 285 };
291 286
292 } // namespace data_reduction_proxy 287 } // namespace data_reduction_proxy
293 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _ 288 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698