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

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

Issue 549153003: Dev finch trial of the data reduction proxy overrides both the primary and the fallback hosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // corresponding definitions for the allowed configurations. 243 // corresponding definitions for the allowed configurations.
244 bool Init(bool allowed, bool fallback_allowed, bool alt_allowed); 244 bool Init(bool allowed, bool fallback_allowed, bool alt_allowed);
245 245
246 // Initialize the values of the proxies, and probe URL from command 246 // Initialize the values of the proxies, and probe URL from command
247 // line flags and preprocessor constants. 247 // line flags and preprocessor constants.
248 void InitWithoutChecks(); 248 void InitWithoutChecks();
249 249
250 // Returns the corresponding string from preprocessor constants if defined, 250 // Returns the corresponding string from preprocessor constants if defined,
251 // and an empty string otherwise. 251 // and an empty string otherwise.
252 virtual std::string GetDefaultDevOrigin() const; 252 virtual std::string GetDefaultDevOrigin() const;
253 virtual std::string GetDefaultDevFallbackOrigin() const;
253 virtual std::string GetDefaultOrigin() const; 254 virtual std::string GetDefaultOrigin() const;
254 virtual std::string GetDefaultFallbackOrigin() const; 255 virtual std::string GetDefaultFallbackOrigin() const;
255 virtual std::string GetDefaultSSLOrigin() const; 256 virtual std::string GetDefaultSSLOrigin() const;
256 virtual std::string GetDefaultAltOrigin() const; 257 virtual std::string GetDefaultAltOrigin() const;
257 virtual std::string GetDefaultAltFallbackOrigin() const; 258 virtual std::string GetDefaultAltFallbackOrigin() const;
258 virtual std::string GetDefaultProbeURL() const; 259 virtual std::string GetDefaultProbeURL() const;
259 virtual std::string GetDefaultWarmupURL() const; 260 virtual std::string GetDefaultWarmupURL() const;
260 261
261 private: 262 private:
262 // Checks if the primary and fallback data reduction proxies are in the retry 263 // Checks if the primary and fallback data reduction proxies are in the retry
(...skipping 20 matching lines...) Expand all
283 bool fallback_allowed_; 284 bool fallback_allowed_;
284 bool alt_allowed_; 285 bool alt_allowed_;
285 bool promo_allowed_; 286 bool promo_allowed_;
286 bool holdback_; 287 bool holdback_;
287 288
288 bool configured_on_command_line_; 289 bool configured_on_command_line_;
289 }; 290 };
290 291
291 } // namespace data_reduction_proxy 292 } // namespace data_reduction_proxy
292 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _ 293 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_PARAMS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698