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

Issue 1310743003: Consistently use LoFi for an entire page (Closed)

Created:
5 years, 4 months ago by megjablon
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, cbentzel+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, tbansal1, clamy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consistently use LoFi for an entire page Store the LoFi state in the renderer and use that state to add LoFi request headers when appropriate. Introduce a state variable that has three values: LOFI_DEFAULT, LOFI_ON, and LOFI_OFF. The snackbar triggering does not use this state yet, but still looks at the last mainframe LoFi value. Single image loads also use the bypass cache flag up to willSendRequest. These will be fixed in follow up cls. The LoFi state is not preserved from navigation to navigation, and iframes inherit the status. Renderer initiated navigations always start with state LOFI_DEFAULT whereas browser initiated navigations can force LOFI_ON or LOFI_OFF. BUG=524652 Committed: https://crrev.com/d5ac7d52b323d04178bba9cc746c623438d48751 Cr-Commit-Position: refs/heads/master@{#355679}

Patch Set 1 : test fixes #

Total comments: 64

Patch Set 2 : remove log statement and fix ResponseInfo::DeepCopy #

Total comments: 55

Patch Set 3 : addressing comments #

Total comments: 16

Patch Set 4 : use LoFiDefault in RequestNavigationParams constructor #

Total comments: 6

Patch Set 5 : using UserData and adressing nasko comments #

Total comments: 23

Patch Set 6 : addressing comments #

Patch Set 7 : move DRP parts to https://codereview.chromium.org/1363673004/ #

Total comments: 23

Patch Set 8 : mmenke comments #

Total comments: 6

Patch Set 9 : mmenke comments #

Total comments: 17

Patch Set 10 : nasko comments #

Total comments: 2

Patch Set 11 : fix #

Total comments: 2

Patch Set 12 : rebase #

Total comments: 1

Patch Set 13 : added test and rebased #

Total comments: 14

Patch Set 14 : test fix #

Total comments: 42

Patch Set 15 : test comment fixes #

Total comments: 20

Patch Set 16 : mmenke comments #

Total comments: 13

Patch Set 17 : addressing comments #

Total comments: 18

Patch Set 18 : bengr comments and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+414 lines, -36 lines) Patch
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -1 line 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +217 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +21 lines, -11 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -3 lines 0 comments Download
M content/child/request_extra_data.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M content/child/request_extra_data.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/child/weburlresponse_extradata_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/navigation_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +18 lines, -1 line 0 comments Download
M content/common/navigation_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -3 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/resource_response_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +22 lines, -1 line 0 comments Download
A + content/test/data/image.jpg View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
A + content/test/data/page_with_iframe.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 125 (36 generated)
megjablon
5 years, 4 months ago (2015-08-24 19:40:24 UTC) #2
bengr
The structure looks good. I'm assuming LoFi will continue to work after you land this ...
5 years, 4 months ago (2015-08-25 00:00:02 UTC) #3
megjablon
https://codereview.chromium.org/1310743003/diff/20001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1310743003/diff/20001/chrome/renderer/page_load_histograms.cc#newcode418 chrome/renderer/page_load_histograms.cc:418: bool in_lofi_enabled = On 2015/08/25 00:00:01, bengr wrote: > ...
5 years, 4 months ago (2015-08-25 20:29:47 UTC) #4
megjablon
davidben: content/* and net/*
5 years, 4 months ago (2015-08-25 21:10:03 UTC) #6
davidben
+creis and nasko who are probably the right people to review much of this, since ...
5 years, 3 months ago (2015-08-27 18:53:51 UTC) #9
bengr
https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode298 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:298: data_reduction_proxy_request_options_->MaybeAddRequestHeader( On 2015/08/27 18:53:50, David Benjamin wrote: > When ...
5 years, 3 months ago (2015-08-27 21:14:07 UTC) #10
megjablon
https://codereview.chromium.org/1310743003/diff/100001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1310743003/diff/100001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1234 content/browser/loader/resource_dispatcher_host_impl.cc:1234: new_request->set_lofi_state((net::LoFiState) request_data.lofi_state); On 2015/08/27 18:53:50, David Benjamin wrote: > ...
5 years, 3 months ago (2015-08-27 23:11:02 UTC) #11
davidben
https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode298 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:298: data_reduction_proxy_request_options_->MaybeAddRequestHeader( On 2015/08/27 21:14:07, bengr wrote: > On 2015/08/27 ...
5 years, 3 months ago (2015-08-31 23:43:24 UTC) #12
nasko
I'll take a look at this CL in the next couple of days, as I ...
5 years, 3 months ago (2015-08-31 23:47:02 UTC) #13
bengr
https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode298 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:298: data_reduction_proxy_request_options_->MaybeAddRequestHeader( On 2015/08/31 23:43:24, David Benjamin wrote: > On ...
5 years, 3 months ago (2015-09-02 19:01:36 UTC) #14
megjablon
https://codereview.chromium.org/1310743003/diff/100001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1310743003/diff/100001/content/browser/loader/resource_loader.cc#newcode105 content/browser/loader/resource_loader.cc:105: response->head.is_lofi = request->lofi_state() == net::LOFI_ON; On 2015/09/02 19:01:36, bengr ...
5 years, 3 months ago (2015-09-02 21:25:42 UTC) #15
davidben
https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode298 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:298: data_reduction_proxy_request_options_->MaybeAddRequestHeader( On 2015/09/02 19:01:36, bengr wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-09-04 14:41:22 UTC) #16
nasko
Poked mostly through content/. My main concern is that this CL is sprawling the LoFi ...
5 years, 3 months ago (2015-09-04 22:47:42 UTC) #17
megjablon
https://codereview.chromium.org/1310743003/diff/100001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/1310743003/diff/100001/content/common/navigation_params.h#newcode275 content/common/navigation_params.h:275: int lofi_state; On 2015/08/31 23:43:24, David Benjamin wrote: > ...
5 years, 3 months ago (2015-09-09 20:54:16 UTC) #18
bengr
Megan, I've lost track of this CL. Where are we withe the major concerns of ...
5 years, 3 months ago (2015-09-11 12:33:56 UTC) #19
megjablon
On 2015/09/11 12:33:56, bengr wrote: > Megan, I've lost track of this CL. Where are ...
5 years, 3 months ago (2015-09-11 17:29:41 UTC) #20
megjablon
https://codereview.chromium.org/1310743003/diff/100001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/1310743003/diff/100001/net/url_request/url_request.h#newcode850 net/url_request/url_request.h:850: LoFiState lofi_state_; On 2015/09/02 19:01:36, bengr wrote: > On ...
5 years, 3 months ago (2015-09-11 20:58:03 UTC) #21
davidben
https://codereview.chromium.org/1310743003/diff/100001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/1310743003/diff/100001/net/url_request/url_request.h#newcode850 net/url_request/url_request.h:850: LoFiState lofi_state_; On 2015/09/11 20:58:03, megjablon wrote: > On ...
5 years, 3 months ago (2015-09-14 20:30:29 UTC) #22
megjablon
https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode298 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:298: data_reduction_proxy_request_options_->MaybeAddRequestHeader( On 2015/09/04 14:41:22, David Benjamin wrote: > On ...
5 years, 3 months ago (2015-09-15 00:14:33 UTC) #23
nasko
I think content looks good. Few minor comments. https://codereview.chromium.org/1310743003/diff/200001/content/public/renderer/render_frame.h File content/public/renderer/render_frame.h (right): https://codereview.chromium.org/1310743003/diff/200001/content/public/renderer/render_frame.h#newcode155 content/public/renderer/render_frame.h:155: virtual ...
5 years, 3 months ago (2015-09-17 23:09:01 UTC) #25
megjablon
https://codereview.chromium.org/1310743003/diff/200001/content/public/renderer/render_frame.h File content/public/renderer/render_frame.h (right): https://codereview.chromium.org/1310743003/diff/200001/content/public/renderer/render_frame.h#newcode155 content/public/renderer/render_frame.h:155: virtual bool LoFiOn() = 0; On 2015/09/17 23:09:00, nasko ...
5 years, 3 months ago (2015-09-18 23:22:11 UTC) #26
bengr
Just glanced at the CL. I'll take a full pass through it once nasko is ...
5 years, 3 months ago (2015-09-21 17:56:08 UTC) #27
davidben
One quick comment to make sure this isn't forgotten (I'm going to be slow for ...
5 years, 3 months ago (2015-09-21 17:58:15 UTC) #28
mmenke
Drive-by comments. No need to wait for my signoff before landing or anything like that. ...
5 years, 3 months ago (2015-09-21 18:03:48 UTC) #30
davidben
https://codereview.chromium.org/1310743003/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1310743003/diff/220001/content/renderer/render_frame_impl.cc#newcode4501 content/renderer/render_frame_impl.cc:4501: lofi_state_ = request_params.lofi_state; On 2015/09/21 17:58:15, David Benjamin wrote: ...
5 years, 3 months ago (2015-09-21 18:09:01 UTC) #32
megjablon
https://codereview.chromium.org/1310743003/diff/220001/components/data_reduction_proxy/content/common/content_data_reduction_proxy_lofi_helper.cc File components/data_reduction_proxy/content/common/content_data_reduction_proxy_lofi_helper.cc (right): https://codereview.chromium.org/1310743003/diff/220001/components/data_reduction_proxy/content/common/content_data_reduction_proxy_lofi_helper.cc#newcode28 components/data_reduction_proxy/content/common/content_data_reduction_proxy_lofi_helper.cc:28: void ContentDataReductionProxyLoFiHelper::set_lofi_state( On 2015/09/21 17:56:08, bengr wrote: > These ...
5 years, 3 months ago (2015-09-22 20:35:52 UTC) #33
mmenke
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode20 content/public/common/data_reduction_proxy_lofi_user_data.h:20: LOFI_DEFAULT, On 2015/09/22 20:35:52, megjablon wrote: > On 2015/09/21 ...
5 years, 3 months ago (2015-09-22 20:38:13 UTC) #35
megjablon
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode20 content/public/common/data_reduction_proxy_lofi_user_data.h:20: LOFI_DEFAULT, On 2015/09/22 20:38:12, mmenke wrote: > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 20:53:40 UTC) #36
mmenke
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode20 content/public/common/data_reduction_proxy_lofi_user_data.h:20: LOFI_DEFAULT, On 2015/09/22 20:53:40, megjablon wrote: > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 20:57:07 UTC) #37
megjablon
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode20 content/public/common/data_reduction_proxy_lofi_user_data.h:20: LOFI_DEFAULT, On 2015/09/22 20:57:07, mmenke wrote: > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 21:20:26 UTC) #38
davidben
I'm on bug triage duty today and yesterday, so I haven't had a chance to ...
5 years, 3 months ago (2015-09-22 22:20:51 UTC) #39
mmenke
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode30 content/public/common/data_reduction_proxy_lofi_user_data.h:30: void set_lofi_state(LoFiState lofi_state) { lofi_state_ = lofi_state; } On ...
5 years, 3 months ago (2015-09-22 22:36:28 UTC) #40
megjablon
https://codereview.chromium.org/1310743003/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1310743003/diff/220001/content/renderer/render_frame_impl.cc#newcode4501 content/renderer/render_frame_impl.cc:4501: lofi_state_ = request_params.lofi_state; On 2015/09/22 22:20:50, David Benjamin wrote: ...
5 years, 3 months ago (2015-09-23 01:39:05 UTC) #41
megjablon
https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h File content/public/common/data_reduction_proxy_lofi_user_data.h (right): https://codereview.chromium.org/1310743003/diff/220001/content/public/common/data_reduction_proxy_lofi_user_data.h#newcode30 content/public/common/data_reduction_proxy_lofi_user_data.h:30: void set_lofi_state(LoFiState lofi_state) { lofi_state_ = lofi_state; } On ...
5 years, 3 months ago (2015-09-23 23:15:24 UTC) #42
megjablon
A friendly ping! :)
5 years, 2 months ago (2015-09-28 22:25:34 UTC) #43
davidben
(Sorry this slipped through. Will get to it tomorrow!)
5 years, 2 months ago (2015-09-28 22:54:22 UTC) #44
mmenke
On 2015/09/28 22:54:22, David Benjamin wrote: > (Sorry this slipped through. Will get to it ...
5 years, 2 months ago (2015-09-28 23:40:06 UTC) #45
mmenke
https://codereview.chromium.org/1310743003/diff/300001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/300001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode747 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:747: io_data->data_reduction_proxy_io_data(); Why does this need to go through a ...
5 years, 2 months ago (2015-09-29 16:35:58 UTC) #46
megjablon
https://codereview.chromium.org/1310743003/diff/300001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/300001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode747 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:747: io_data->data_reduction_proxy_io_data(); On 2015/09/29 16:35:57, mmenke wrote: > Why does ...
5 years, 2 months ago (2015-09-29 21:20:07 UTC) #47
mmenke
We should have browser tests for this - tests that the RDHDelegate can set the ...
5 years, 2 months ago (2015-09-30 19:33:41 UTC) #49
megjablon
I'm unfamiliar with the test infrastructure in content, can you recommend some similar tests for ...
5 years, 2 months ago (2015-09-30 22:14:08 UTC) #50
mmenke
On 2015/09/30 22:14:08, megjablon wrote: > I'm unfamiliar with the test infrastructure in content, can ...
5 years, 2 months ago (2015-09-30 22:21:48 UTC) #51
megjablon
On 2015/09/30 22:21:48, mmenke wrote: > On 2015/09/30 22:14:08, megjablon wrote: > > I'm unfamiliar ...
5 years, 2 months ago (2015-09-30 22:30:05 UTC) #52
mmenke
On 2015/09/30 22:30:05, megjablon wrote: > On 2015/09/30 22:21:48, mmenke wrote: > > On 2015/09/30 ...
5 years, 2 months ago (2015-09-30 22:36:44 UTC) #53
nasko
Just a few comments, mostly nits. https://chromiumcodereview.appspot.com/1310743003/diff/380001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/380001/chrome/renderer/page_load_histograms.cc#newcode916 chrome/renderer/page_load_histograms.cc:916: data_reduction_proxy_was_used, render_frame->IsUsingLoFi(), Is ...
5 years, 2 months ago (2015-10-01 18:28:57 UTC) #54
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/380001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/380001/chrome/renderer/page_load_histograms.cc#newcode916 chrome/renderer/page_load_histograms.cc:916: data_reduction_proxy_was_used, render_frame->IsUsingLoFi(), On 2015/10/01 18:28:57, nasko (slow to review) ...
5 years, 2 months ago (2015-10-01 19:43:25 UTC) #55
nasko
LGTM on non-loader part of content/. Please ensure davidben@/mmenke@ sign off on the loader part. ...
5 years, 2 months ago (2015-10-01 20:13:57 UTC) #56
megjablon
https://codereview.chromium.org/1310743003/diff/400001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1310743003/diff/400001/content/renderer/render_frame_impl.cc#newcode3396 content/renderer/render_frame_impl.cc:3396: else if (is_main_frame_) On 2015/10/01 20:13:57, nasko (slow to ...
5 years, 2 months ago (2015-10-01 20:20:56 UTC) #57
clamy
Just a comment on the navigation_params. https://codereview.chromium.org/1310743003/diff/420001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/1310743003/diff/420001/content/common/navigation_params.h#newcode107 content/common/navigation_params.h:107: LoFiState lofi_state; Why ...
5 years, 2 months ago (2015-10-02 16:08:30 UTC) #59
mmenke
On 2015/09/30 22:30:05, megjablon wrote: > We have plans to make this a web platform ...
5 years, 2 months ago (2015-10-02 16:58:08 UTC) #60
megjablon
On 2015/10/02 16:58:08, mmenke wrote: > On 2015/09/30 22:30:05, megjablon wrote: > > We have ...
5 years, 2 months ago (2015-10-02 17:45:21 UTC) #61
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/420001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://chromiumcodereview.appspot.com/1310743003/diff/420001/content/common/navigation_params.h#newcode107 content/common/navigation_params.h:107: LoFiState lofi_state; On 2015/10/02 16:08:30, clamy wrote: > Why ...
5 years, 2 months ago (2015-10-02 17:47:39 UTC) #62
mmenke
For tests, content/browser/loader/resource_dispatcher_host_browsertest.cc already inject a RDHDelegate. You should be able to fairly easily follow ...
5 years, 2 months ago (2015-10-05 15:32:41 UTC) #65
mmenke
On 2015/10/02 17:45:21, megjablon wrote: > On 2015/10/02 16:58:08, mmenke wrote: > > On 2015/09/30 ...
5 years, 2 months ago (2015-10-05 15:33:50 UTC) #66
megjablon
On 2015/10/05 15:32:41, mmenke wrote: > For tests, content/browser/loader/resource_dispatcher_host_browsertest.cc > already inject a RDHDelegate. You ...
5 years, 2 months ago (2015-10-06 18:03:25 UTC) #67
davidben
On 2015/10/06 18:03:25, megjablon wrote: > On 2015/10/05 15:32:41, mmenke wrote: > > For tests, ...
5 years, 2 months ago (2015-10-06 20:35:49 UTC) #68
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/480001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/480001/content/renderer/render_frame_impl.cc#newcode431 content/renderer/render_frame_impl.cc:431: extra_data->set_lofi_state(common_params.lofi_state); I'm finding that setting this extra data here ...
5 years, 2 months ago (2015-10-07 02:22:48 UTC) #69
mmenke
On 2015/10/06 20:35:49, David Benjamin wrote: > On 2015/10/06 18:03:25, megjablon wrote: > > On ...
5 years, 2 months ago (2015-10-07 14:47:55 UTC) #70
megjablon
On 2015/10/07 14:47:55, mmenke wrote: > On 2015/10/06 20:35:49, David Benjamin wrote: > > On ...
5 years, 2 months ago (2015-10-07 19:47:37 UTC) #72
mmenke
https://codereview.chromium.org/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://codereview.chromium.org/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode531 content/browser/loader/resource_dispatcher_host_browsertest.cc:531: : public ResourceDispatcherHostDelegate { This class seems very sensitive ...
5 years, 2 months ago (2015-10-08 19:06:10 UTC) #73
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode531 content/browser/loader/resource_dispatcher_host_browsertest.cc:531: : public ResourceDispatcherHostDelegate { On 2015/10/08 19:06:09, mmenke wrote: ...
5 years, 2 months ago (2015-10-08 22:20:40 UTC) #74
mmenke
quick response. I'll take another look tomorrow. https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode583 content/browser/loader/resource_dispatcher_host_browsertest.cc:583: ResourceDispatcherHost::Get()->SetDelegate(&delegate); On ...
5 years, 2 months ago (2015-10-08 22:25:15 UTC) #75
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode583 content/browser/loader/resource_dispatcher_host_browsertest.cc:583: ResourceDispatcherHost::Get()->SetDelegate(&delegate); On 2015/10/08 22:25:15, mmenke wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 23:39:07 UTC) #77
mmenke
https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode583 content/browser/loader/resource_dispatcher_host_browsertest.cc:583: ResourceDispatcherHost::Get()->SetDelegate(&delegate); On 2015/10/08 23:39:07, megjablon wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-09 15:31:56 UTC) #78
megjablon
On 2015/10/09 15:31:56, mmenke wrote: > https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc > File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): > > https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode583 > ...
5 years, 2 months ago (2015-10-09 19:53:25 UTC) #79
mmenke
On 2015/10/09 19:53:25, megjablon wrote: > On 2015/10/09 15:31:56, mmenke wrote: > > > https://chromiumcodereview.appspot.com/1310743003/diff/520001/content/browser/loader/resource_dispatcher_host_browsertest.cc ...
5 years, 2 months ago (2015-10-09 19:56:59 UTC) #80
megjablon
On 2015/10/09 19:56:59, mmenke wrote: > On 2015/10/09 19:53:25, megjablon wrote: > > On 2015/10/09 ...
5 years, 2 months ago (2015-10-09 20:05:41 UTC) #81
megjablon
thestig: chrome/*
5 years, 2 months ago (2015-10-12 19:18:08 UTC) #83
mmenke
On 2015/10/09 20:05:41, megjablon wrote: > On 2015/10/09 19:56:59, mmenke wrote: > > On 2015/10/09 ...
5 years, 2 months ago (2015-10-12 19:45:46 UTC) #84
mmenke
Want to do a full pass tomorrow. https://codereview.chromium.org/1310743003/diff/620001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://codereview.chromium.org/1310743003/diff/620001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode531 content/browser/loader/resource_dispatcher_host_browsertest.cc:531: class LoFiModeResourceDispatcherHostDelegate ...
5 years, 2 months ago (2015-10-12 20:19:29 UTC) #85
Lei Zhang
chrome/ lgtm
5 years, 2 months ago (2015-10-12 21:53:44 UTC) #86
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/620001/content/browser/loader/resource_dispatcher_host_browsertest.cc File content/browser/loader/resource_dispatcher_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/620001/content/browser/loader/resource_dispatcher_host_browsertest.cc#newcode531 content/browser/loader/resource_dispatcher_host_browsertest.cc:531: class LoFiModeResourceDispatcherHostDelegate On 2015/10/12 20:19:29, mmenke wrote: > This ...
5 years, 2 months ago (2015-10-12 22:06:06 UTC) #87
mmenke
LGTM, modulo comments. https://codereview.chromium.org/1310743003/diff/640001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/1310743003/diff/640001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode22 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:22: } nit: Remove braces https://codereview.chromium.org/1310743003/diff/640001/content/browser/loader/resource_dispatcher_host_browsertest.cc File ...
5 years, 2 months ago (2015-10-13 15:42:49 UTC) #88
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/640001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/640001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode22 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:22: } On 2015/10/13 15:42:49, mmenke wrote: > nit: Remove ...
5 years, 2 months ago (2015-10-14 18:09:47 UTC) #89
nasko
I think it is mostly ready from my perspective, once this round of comments is ...
5 years, 2 months ago (2015-10-15 16:54:44 UTC) #90
mmenke
https://codereview.chromium.org/1310743003/diff/660001/content/public/browser/resource_dispatcher_host_delegate.h File content/public/browser/resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/1310743003/diff/660001/content/public/browser/resource_dispatcher_host_delegate.h#newcode128 content/public/browser/resource_dispatcher_host_delegate.h:128: // is only called for main frame requests with ...
5 years, 2 months ago (2015-10-15 17:04:28 UTC) #91
nasko
On 2015/10/15 17:04:28, mmenke wrote: > https://codereview.chromium.org/1310743003/diff/660001/content/public/browser/resource_dispatcher_host_delegate.h > File content/public/browser/resource_dispatcher_host_delegate.h (right): > > https://codereview.chromium.org/1310743003/diff/660001/content/public/browser/resource_dispatcher_host_delegate.h#newcode128 > ...
5 years, 2 months ago (2015-10-15 17:11:47 UTC) #92
mmenke
On 2015/10/15 17:11:47, nasko (slow to review) wrote: > On 2015/10/15 17:04:28, mmenke wrote: > ...
5 years, 2 months ago (2015-10-15 17:19:41 UTC) #93
mmenke
On 2015/10/15 17:19:41, mmenke wrote: > On 2015/10/15 17:11:47, nasko (slow to review) wrote: > ...
5 years, 2 months ago (2015-10-15 17:22:28 UTC) #94
nasko
On 2015/10/15 17:22:28, mmenke wrote: > On 2015/10/15 17:19:41, mmenke wrote: > > On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 17:42:59 UTC) #95
megjablon
On 2015/10/15 17:42:59, nasko (slow to review) wrote: > On 2015/10/15 17:22:28, mmenke wrote: > ...
5 years, 2 months ago (2015-10-19 22:13:38 UTC) #96
megjablon
https://chromiumcodereview.appspot.com/1310743003/diff/660001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://chromiumcodereview.appspot.com/1310743003/diff/660001/content/browser/frame_host/render_frame_host_impl.cc#newcode1740 content/browser/frame_host/render_frame_host_impl.cc:1740: LOFI_UNSPECIFIED); On 2015/10/15 16:54:43, nasko (slow to review) wrote: ...
5 years, 2 months ago (2015-10-19 22:13:49 UTC) #97
bengr
Looks good. Thanks for hanging in there, Megan. Just a few more comments from me... ...
5 years, 2 months ago (2015-10-20 16:30:51 UTC) #98
megjablon
https://codereview.chromium.org/1310743003/diff/680001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1310743003/diff/680001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode726 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:726: net::URLRequest* url_request, On 2015/10/20 16:30:51, bengr wrote: > Can ...
5 years, 2 months ago (2015-10-20 17:46:35 UTC) #99
bengr
LGTM, with one last comment. https://codereview.chromium.org/1310743003/diff/680001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/1310743003/diff/680001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode8 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:8: #include "net/url_request/url_request.h" On 2015/10/20 ...
5 years, 2 months ago (2015-10-21 20:58:25 UTC) #100
megjablon
https://codereview.chromium.org/1310743003/diff/680001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/1310743003/diff/680001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode8 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:8: #include "net/url_request/url_request.h" On 2015/10/21 20:58:25, bengr wrote: > On ...
5 years, 2 months ago (2015-10-21 21:38:10 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310743003/860001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310743003/860001
5 years, 2 months ago (2015-10-22 23:30:51 UTC) #108
commit-bot: I haz the power
Committed patchset #33 (id:860001)
5 years, 2 months ago (2015-10-22 23:56:20 UTC) #109
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 23:57:02 UTC) #110
Message was sent while issue was closed.
Patchset 33 (id:??) landed as
https://crrev.com/d5ac7d52b323d04178bba9cc746c623438d48751
Cr-Commit-Position: refs/heads/master@{#355679}

Powered by Google App Engine
This is Rietveld 408576698