Chromium Code Reviews| Index: components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h |
| diff --git a/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..81e300ac6c1a7e8bd5cd99ac196f893bd910f9a4 |
| --- /dev/null |
| +++ b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_DATA_REDUCTION_PROXY_LOFI_HELPER_H_ |
| +#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_DATA_REDUCTION_PROXY_LOFI_HELPER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/data_reduction_proxy/core/common/data_reduction_proxy_lofi_helper.h" |
| + |
| +namespace net { |
| +class URLRequest; |
| +} |
| + |
| +namespace data_reduction_proxy { |
| + |
| +// Handles getting if a request is in Lo-Fi mode. |
| +class ContentDataReductionProxyLoFiHelper |
| + : public DataReductionProxyLoFiHelper { |
| + public: |
| + ContentDataReductionProxyLoFiHelper(); |
| + ~ContentDataReductionProxyLoFiHelper() override; |
| + |
| + // Returns true if the Lo-Fi directive should be added to the Chrome-Proxy |
|
tbansal1
2015/09/29 00:47:48
Does this return true if the user is in Control gr
megjablon
2015/09/29 02:38:38
Yes, fixed. Moved the check in here.
|
| + // header for the given request. |
| + bool IsLoFi(const net::URLRequest* request) const override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ContentDataReductionProxyLoFiHelper); |
| +}; |
| + |
| +} // namespace data_reduction_proxy |
| + |
| +#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_DATA_REDUCTION_PROXY_LOFI_HELPER_H_ |