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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.h

Issue 338723002: Add probe to warm data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/browser/data_reduction_proxy_params.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_params.h b/components/data_reduction_proxy/browser/data_reduction_proxy_params.h
index 0285001a35e2868c084aa0d73318d21b27b5b9c2..5ae00b839485b3eed085aeecb62aeacdc5371a21 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.h
@@ -58,8 +58,8 @@ class DataReductionProxyParams {
// bypassed or disabled. If |kAlternativeAllowed| then an alternative proxy
// configuration is allowed to be used. This alternative configuration would
// replace the primary and fallback proxy configurations if enabled. Finally
- // if |kPromoAllowed|, the client may show a promotion for the data
- // reduction proxy.
+ // if |kPromoAllowed|, the client may show a promotion for the data reduction
+ // proxy.
//
// A standard configuration has a primary proxy, and a fallback proxy for
// HTTP traffic. The alternative configuration has a different primary and
@@ -119,6 +119,11 @@ class DataReductionProxyParams {
return probe_url_;
}
+ // Returns the URL to fetch to warm the data reduction proxy connection.
+ const GURL& warmup_url() const {
+ return warmup_url_;
+ }
+
// Set the proxy authentication key.
void set_key(const std::string& key) {
key_ = key;
@@ -180,6 +185,7 @@ class DataReductionProxyParams {
virtual std::string GetDefaultAltOrigin() const;
virtual std::string GetDefaultAltFallbackOrigin() const;
virtual std::string GetDefaultProbeURL() const;
+ virtual std::string GetDefaultWarmupURL() const;
private:
GURL origin_;
@@ -188,6 +194,7 @@ class DataReductionProxyParams {
GURL alt_origin_;
GURL alt_fallback_origin_;
GURL probe_url_;
+ GURL warmup_url_;
std::string key_;
@@ -196,7 +203,6 @@ class DataReductionProxyParams {
bool alt_allowed_;
const bool promo_allowed_;
-
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyParams);
};

Powered by Google App Engine
This is Rietveld 408576698