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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc

Issue 156373002: Support for new data reduction proxy via header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation error on unsupported platforms Created 6 years, 10 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: chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
index c8aa7c9c53e782c0c66160433e38d7038d850c76..52891344c2a34925133bd849dcd3323caa8f67d6 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc
@@ -208,17 +208,6 @@ bool DataReductionProxySettings::IsPreconnectHintingAllowed() {
}
// static
-bool DataReductionProxySettings::WasFetchedViaProxy(
- const net::HttpResponseHeaders* headers) {
- const char kChromeProxyViaValue[] = "1.1 Chrome Compression Proxy";
- void* iter = NULL;
- std::string value;
- while (headers->EnumerateHeader(&iter, "via", &value))
- if (value == kChromeProxyViaValue) return true;
- return false;
-}
-
-// static
std::string DataReductionProxySettings::GetDataReductionProxyOrigin() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kSpdyProxyDevAuthOrigin))

Powered by Google App Engine
This is Rietveld 408576698