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

Unified Diff: components/data_reduction_proxy/core/common/lofi_decider.h

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
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/lofi_decider.h
diff --git a/components/data_reduction_proxy/core/common/lofi_decider.h b/components/data_reduction_proxy/core/common/lofi_decider.h
index 6eb8e51dabb18aa6742a33cd6d7e79dd5c5f3485..3f0db84306049e08424a9f8339f624a18172e5c4 100644
--- a/components/data_reduction_proxy/core/common/lofi_decider.h
+++ b/components/data_reduction_proxy/core/common/lofi_decider.h
@@ -9,14 +9,11 @@
namespace net {
class HttpRequestHeaders;
-class ProxyServer;
class URLRequest;
}
namespace data_reduction_proxy {
-class DataReductionProxyConfig;
-
// Interface to determine if a request should be made for a low fidelity version
// of the resource.
class LoFiDecider {
@@ -31,13 +28,10 @@ class LoFiDecider {
// |request| is using Lo-Fi mode, adds the "q=low" directive to the |headers|.
// If the |request| is using Lo-Fi preview mode, and it is a main frame
// request adds the "q=preview" and it is a main frame request directive to
- // the |headers|. Only adds this header if the provided |proxy_server| is a
- // data reduction proxy as identified by the given |config|.
+ // the |headers|.
virtual bool MaybeAddLoFiDirectiveToHeaders(
const net::URLRequest& request,
- net::HttpRequestHeaders* headers,
- const net::ProxyServer& proxy_server,
- DataReductionProxyConfig* config) const = 0;
+ net::HttpRequestHeaders* headers) const = 0;
};
} // namespace data_reduction_proxy
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698