OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_ | |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_H_ | |
7 | |
8 #include "components/data_reduction_proxy/core/common/lofi_decider.h" | |
9 #include "base/macros.h" | |
10 | |
11 namespace net { | |
12 class URLRequest; | |
13 } | |
14 | |
15 namespace data_reduction_proxy { | |
16 | |
17 // Class responsible for deciding whether a request should be requested with low | |
tbansal1
2015/10/13 17:12:02
Is this class deciding if Lo-Fi should be used or
megjablon
2015/10/14 17:50:18
The plan is to move adding the header directly to
| |
18 // fidelity (Lo-Fi) or not. Lives in content because the Lo-Fi mode state is | |
19 // stored in the request's content::ResourceRequestInfo which must be fetched | |
20 // using content::ResourceRequestInfo::ForRequest. Lives in | |
tbansal1
2015/10/13 17:12:02
You mean owned by DRPIOData?
megjablon
2015/10/14 17:50:18
Done.
| |
21 // DataReductionProxyIOData and should be called on the IO thread. | |
22 class ContentLoFiDecider : public LoFiDecider { | |
23 public: | |
24 ContentLoFiDecider(); | |
25 ~ContentLoFiDecider() override; | |
26 | |
27 bool IsUsingLoFiMode(const net::URLRequest& request) const override; | |
28 | |
29 private: | |
30 DISALLOW_COPY_AND_ASSIGN(ContentLoFiDecider); | |
31 }; | |
32 | |
33 } // namespace data_reduction_proxy | |
34 | |
35 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_LOFI_DECIDER_ H_ | |
OLD | NEW |