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 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" | 5 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h " | 9 #include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h " |
10 #include "net/proxy/proxy_info.h" | 10 #include "net/proxy/proxy_info.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 if (command_line.HasSwitch(switches::kEnableDataReductionProxyDev) || | 323 if (command_line.HasSwitch(switches::kEnableDataReductionProxyDev) || |
324 (FieldTrialList::FindFullName("DataCompressionProxyDevRollout") == | 324 (FieldTrialList::FindFullName("DataCompressionProxyDevRollout") == |
325 kEnabled)) { | 325 kEnabled)) { |
326 return DATA_REDUCTION_DEV_HOST; | 326 return DATA_REDUCTION_DEV_HOST; |
327 } | 327 } |
328 #endif | 328 #endif |
329 return std::string(); | 329 return std::string(); |
330 } | 330 } |
331 | 331 |
332 std::string DataReductionProxyParams::GetDefaultOrigin() const { | 332 std::string DataReductionProxyParams::GetDefaultOrigin() const { |
333 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 333 return "https://proxy.googlezip.net:443/"; |
334 return SPDY_PROXY_AUTH_ORIGIN; | |
bengr
2014/07/11 20:42:53
There are lots of checks and tests for cases where
Not at Google. Contact bengr
2014/07/16 22:41:34
I think I have removed it all.
| |
335 #endif | |
336 return std::string(); | |
337 } | 334 } |
338 | 335 |
339 std::string DataReductionProxyParams::GetDefaultFallbackOrigin() const { | 336 std::string DataReductionProxyParams::GetDefaultFallbackOrigin() const { |
340 #if defined(DATA_REDUCTION_FALLBACK_HOST) | 337 return "http://compress.googlezip.net:80/"; |
341 return DATA_REDUCTION_FALLBACK_HOST; | |
342 #endif | |
343 return std::string(); | |
344 } | 338 } |
345 | 339 |
346 std::string DataReductionProxyParams::GetDefaultSSLOrigin() const { | 340 std::string DataReductionProxyParams::GetDefaultSSLOrigin() const { |
347 #if defined(DATA_REDUCTION_PROXY_SSL_ORIGIN) | 341 return "http://ssl.googlezip.net:1043/"; |
348 return DATA_REDUCTION_PROXY_SSL_ORIGIN; | |
349 #endif | |
350 return std::string(); | |
351 } | 342 } |
352 | 343 |
353 std::string DataReductionProxyParams::GetDefaultAltOrigin() const { | 344 std::string DataReductionProxyParams::GetDefaultAltOrigin() const { |
354 #if defined(DATA_REDUCTION_PROXY_ALT_ORIGIN) | 345 return "https://proxy.googlezip.net:443/"; |
355 return DATA_REDUCTION_PROXY_ALT_ORIGIN; | |
356 #endif | |
357 return std::string(); | |
358 } | 346 } |
359 | 347 |
360 std::string DataReductionProxyParams::GetDefaultAltFallbackOrigin() const { | 348 std::string DataReductionProxyParams::GetDefaultAltFallbackOrigin() const { |
361 #if defined(DATA_REDUCTION_PROXY_ALT_FALLBACK_ORIGIN) | 349 return "http://compress.googlezip.net:80/"; |
362 return DATA_REDUCTION_PROXY_ALT_FALLBACK_ORIGIN; | |
363 #endif | |
364 return std::string(); | |
365 } | 350 } |
366 | 351 |
367 std::string DataReductionProxyParams::GetDefaultProbeURL() const { | 352 std::string DataReductionProxyParams::GetDefaultProbeURL() const { |
368 #if defined(DATA_REDUCTION_PROXY_PROBE_URL) | 353 return "http://check.googlezip.net/connect"; |
369 return DATA_REDUCTION_PROXY_PROBE_URL; | |
370 #endif | |
371 return std::string(); | |
372 } | 354 } |
373 | 355 |
374 std::string DataReductionProxyParams::GetDefaultWarmupURL() const { | 356 std::string DataReductionProxyParams::GetDefaultWarmupURL() const { |
375 #if defined(DATA_REDUCTION_PROXY_WARMUP_URL) | 357 return "http://www.gstatic.com/generate_204"; |
376 return DATA_REDUCTION_PROXY_WARMUP_URL; | |
377 #endif | |
378 return std::string(); | |
379 } | 358 } |
380 | 359 |
381 } // namespace data_reduction_proxy | 360 } // namespace data_reduction_proxy |
OLD | NEW |