Chromium Code Reviews| 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_CORE_BROWSER_LOFI_DECIDER_H_ | |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "net/url_request/url_request.h" | |
| 10 | |
| 11 namespace data_reduction_proxy { | |
| 12 | |
| 13 // Interface to determine if a request should be made for a low fidelity version | |
| 14 // of the resource. | |
| 15 class LoFiDecider { | |
| 16 public: | |
| 17 virtual ~LoFiDecider() {} | |
| 18 | |
| 19 // Returns true when Lo-Fi mode is activated. | |
| 20 virtual bool IsUsingLoFiMode(const net::URLRequest& request) const = 0; | |
|
bengr
2015/10/12 21:06:41
I really don't understand the name. I'm presuming
megjablon
2015/10/12 23:08:05
ShouldUseLoFiMode is reserved for when we call the
| |
| 21 }; | |
| 22 | |
| 23 } // namespace data_reduction_proxy | |
| 24 | |
| 25 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_LOFI_DECIDER_H_ | |
| OLD | NEW |