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

Unified Diff: components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h

Issue 1363673004: [DRP] Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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..144d7aeb76221044a7d50988c37c2064bb66840d
--- /dev/null
+++ b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.h
@@ -0,0 +1,32 @@
+// 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 from a request.
tbansal1 2015/09/28 17:49:02 May be remove "from a request"
megjablon 2015/09/28 22:43:37 Done.
+class ContentDataReductionProxyLoFiHelper
+ : public DataReductionProxyLoFiHelper {
+ public:
+ ContentDataReductionProxyLoFiHelper();
+ ~ContentDataReductionProxyLoFiHelper() override;
+
+ bool IsLoFi(net::URLRequest* request) const override;
tbansal1 2015/09/28 17:49:02 Method comments. Also, may be use const net::URLR
megjablon 2015/09/28 22:43:37 Done.
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ContentDataReductionProxyLoFiHelper);
+};
+
+} // namespace data_reduction_proxy
+
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_CONTENT_DATA_REDUCTION_PROXY_LOFI_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698