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

Side by Side Diff: components/data_reduction_proxy/content/browser/content_lofi_decider.cc

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 2 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
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 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h " 5 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h "
6 6
7 #include "content/public/browser/resource_request_info.h"
8
7 namespace data_reduction_proxy { 9 namespace data_reduction_proxy {
8 10
9 ContentLoFiDecider::ContentLoFiDecider() {} 11 ContentLoFiDecider::ContentLoFiDecider() {}
10 12
11 ContentLoFiDecider::~ContentLoFiDecider() {} 13 ContentLoFiDecider::~ContentLoFiDecider() {}
12 14
13 bool ContentLoFiDecider::IsUsingLoFiMode(const net::URLRequest& request) const { 15 bool ContentLoFiDecider::IsUsingLoFiMode(const net::URLRequest& request) const {
14 // TODO: will be check of ResourceRequestInfo::IsUsingLoFi 16 const content::ResourceRequestInfo* request_info =
17 content::ResourceRequestInfo::ForRequest(&request);
18 if (request_info)
19 return request_info->IsUsingLoFi();
15 return false; 20 return false;
16 } 21 }
17 22
18 } // namespace data_reduction_proxy 23 } // namespace data_reduction_proxy
OLDNEW
« no previous file with comments | « chrome/renderer/page_load_histograms.cc ('k') | content/browser/frame_host/navigation_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698