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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_decider.cc

Issue 1933653004: Reset the Lo-Fi main frame state when there is a new main frame request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check data_reduction_proxy_io_data_ Created 4 years, 7 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/content/browser/content_lofi_decider.cc
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
index d4ba53133d74c087fcb5b9c50266c511fe04efba..12b323dc659fbd0e6744089fee207021599081dd 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
@@ -6,13 +6,11 @@
#include <string>
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "content/public/browser/resource_request_info.h"
#include "net/base/load_flags.h"
#include "net/http/http_request_headers.h"
-#include "net/proxy/proxy_server.h"
#include "net/url_request/url_request.h"
namespace data_reduction_proxy {
@@ -38,15 +36,7 @@ bool ContentLoFiDecider::IsUsingLoFiMode(const net::URLRequest& request) const {
bool ContentLoFiDecider::MaybeAddLoFiDirectiveToHeaders(
const net::URLRequest& request,
- net::HttpRequestHeaders* headers,
- const net::ProxyServer& proxy_server,
- DataReductionProxyConfig* config) const {
- if (!proxy_server.is_valid() || proxy_server.is_direct() ||
- proxy_server.host_port_pair().IsEmpty() ||
- !config->IsDataReductionProxy(proxy_server.host_port_pair(), nullptr)) {
- return false;
- }
-
+ net::HttpRequestHeaders* headers) const {
const content::ResourceRequestInfo* request_info =
content::ResourceRequestInfo::ForRequest(&request);

Powered by Google App Engine
This is Rietveld 408576698