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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc

Issue 2802843003: Update CPAT protocol to send lite-page transform acceptance with ect
Patch Set: Merge with testLitePageBTF Created 3 years, 8 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/core/browser/data_reduction_proxy_network_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
index 6752c415e7861dbec641209707bdcbf868b57226..bd9c9e3dcd71fbae1c89ea62e5b1c360b5ed5127 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
@@ -224,8 +224,7 @@ void DataReductionProxyNetworkDelegate::OnBeforeStartTransactionInternal(
if (data_reduction_proxy_io_data_->lofi_decider()) {
data_reduction_proxy_io_data_->lofi_decider()
- ->MaybeSetAcceptTransformHeader(
- *request, data_reduction_proxy_config_->lofi_off(), headers);
+ ->MaybeSetAcceptTransformHeader(*request, headers);
}
MaybeAddChromeProxyECTHeader(headers, *request);
@@ -320,7 +319,7 @@ void DataReductionProxyNetworkDelegate::OnBeforeSendHeadersInternal(
if (data) {
data->set_lofi_requested(
- lofi_decider ? lofi_decider->ShouldRecordLoFiUMA(*request) : false);
+ lofi_decider ? lofi_decider->ShouldRecordPreviewsUMA(*request) : false);
}
MaybeAddBrotliToAcceptEncodingHeader(proxy_info, headers, *request);
@@ -337,7 +336,7 @@ void DataReductionProxyNetworkDelegate::OnBeforeSendHeadersInternal(
data_reduction_proxy_request_options_->AddRequestHeader(headers, page_id);
if (lofi_decider)
- lofi_decider->MaybeSetIgnorePreviewsBlacklistDirective(headers);
+ lofi_decider->MaybeSetForceLitePageDirective(headers);
VerifyHttpRequestHeaders(true, *headers);
}

Powered by Google App Engine
This is Rietveld 408576698