OLD | NEW |
---|---|
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 #include "net/url_request/url_request.h" | |
bengr
2015/10/20 16:30:51
It looks like you can forward declare the URLReque
megjablon
2015/10/20 17:46:35
Done.
bengr
2015/10/21 20:58:25
You should forward declare it.
megjablon
2015/10/21 21:38:10
It's already forward declared in the header file.
| |
9 | |
7 namespace data_reduction_proxy { | 10 namespace data_reduction_proxy { |
8 | 11 |
9 ContentLoFiDecider::ContentLoFiDecider() {} | 12 ContentLoFiDecider::ContentLoFiDecider() {} |
10 | 13 |
11 ContentLoFiDecider::~ContentLoFiDecider() {} | 14 ContentLoFiDecider::~ContentLoFiDecider() {} |
12 | 15 |
13 bool ContentLoFiDecider::IsUsingLoFiMode(const net::URLRequest& request) const { | 16 bool ContentLoFiDecider::IsUsingLoFiMode(const net::URLRequest& request) const { |
14 // TODO: will be check of ResourceRequestInfo::IsUsingLoFi | 17 const content::ResourceRequestInfo* request_info = |
18 content::ResourceRequestInfo::ForRequest(&request); | |
19 if (request_info) | |
20 return request_info->IsUsingLoFi(); | |
15 return false; | 21 return false; |
16 } | 22 } |
17 | 23 |
18 } // namespace data_reduction_proxy | 24 } // namespace data_reduction_proxy |
OLD | NEW |