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

Side by Side Diff: components/data_reduction_proxy/content/browser/content_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 unified diff | Download patch
« no previous file with comments | « no previous file | components/data_reduction_proxy/content/browser/content_lofi_decider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_
7 7
8 #include "components/data_reduction_proxy/core/common/lofi_decider.h" 8 #include "components/data_reduction_proxy/core/common/lofi_decider.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // Owned by DataReductionProxyIOData and should be called on the IO thread. 23 // Owned by DataReductionProxyIOData and should be called on the IO thread.
24 class ContentLoFiDecider : public LoFiDecider { 24 class ContentLoFiDecider : public LoFiDecider {
25 public: 25 public:
26 ContentLoFiDecider(); 26 ContentLoFiDecider();
27 ~ContentLoFiDecider() override; 27 ~ContentLoFiDecider() override;
28 28
29 // LoFiDecider implementation: 29 // LoFiDecider implementation:
30 bool IsUsingLoFiMode(const net::URLRequest& request) const override; 30 bool IsUsingLoFiMode(const net::URLRequest& request) const override;
31 bool MaybeAddLoFiDirectiveToHeaders( 31 bool MaybeAddLoFiDirectiveToHeaders(
32 const net::URLRequest& request, 32 const net::URLRequest& request,
33 net::HttpRequestHeaders* headers, 33 net::HttpRequestHeaders* headers) const override;
34 const net::ProxyServer& proxy_server,
35 DataReductionProxyConfig* config) const override;
36 34
37 private: 35 private:
38 DISALLOW_COPY_AND_ASSIGN(ContentLoFiDecider); 36 DISALLOW_COPY_AND_ASSIGN(ContentLoFiDecider);
39 }; 37 };
40 38
41 } // namespace data_reduction_proxy 39 } // namespace data_reduction_proxy
42 40
43 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_ H_ 41 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_ H_
OLDNEW
« no previous file with comments | « no previous file | components/data_reduction_proxy/content/browser/content_lofi_decider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698