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

Issue 2619243003: Adding ExtraRequest info and exposing request to PLM observers (Closed)

Created:
3 years, 11 months ago by RyanSturm
Modified:
3 years, 11 months ago
CC:
Bryan McQuade, cbentzel+watch_chromium.org, chromium-reviews, csharrison+watch_chromium.org, gavinp+prer_chromium.org, loading-reviews+metrics_chromium.org, loading-reviews_chromium.org, mmenke, Randy Smith (Not in Mondays), tbansal+watch-data-reduction-proxy_chromium.org, tburkard+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding ExtraRequest info and exposing request to PLM observers This CL adds a count of requests using DRP and information about compression. This will allow us to reconsider UMA (e.g., logging UMA for Mixed content pages (HTTPS pages using DRP from HTTP sub-resources), logging UMA for <50% of network requests using DRP, >50% of network requests using DRP, etc.). This will also allow UMA for size of page in terms of network bytes and in terms of original content length (precompressed bytes from the origin). This will allow a DRP per-page data savings histogram as well. BUG=679893 Review-Url: https://codereview.chromium.org/2619243003 Cr-Commit-Position: refs/heads/master@{#443313} Committed: https://chromium.googlesource.com/chromium/src/+/d2051030e7d9a6ffdfd5f6bde903ec48862b9f49

Patch Set 1 #

Patch Set 2 : Draft of adding DRP request info to PLM #

Patch Set 3 : Adding ExtraRequestInfo and OnResourceLoaded to PLMObserver #

Total comments: 12

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -132 lines) Patch
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_web_contents_observer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/metrics_web_contents_observer.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc View 1 2 3 4 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_observer.h View 1 2 3 3 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_observer.cc View 1 2 3 2 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.h View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.cc View 1 2 3 3 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 4 chunks +7 lines, -64 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_util.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc View 1 2 3 3 chunks +56 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (27 generated)
RyanSturm
bmcquade, csharrison: This is a draft for the purpose of discussion and I will clean ...
3 years, 11 months ago (2017-01-09 18:47:39 UTC) #6
Charlie Harrison
Hm, what if we just surfaced OnLoadedResource to downstream consumers? Then the DRP observer could ...
3 years, 11 months ago (2017-01-09 21:41:28 UTC) #7
RyanSturm
On 2017/01/09 21:41:28, Charlie Harrison wrote: > Hm, what if we just surfaced OnLoadedResource to ...
3 years, 11 months ago (2017-01-09 21:45:02 UTC) #8
Charlie Harrison
It is okay with me. We're "polluting" a single method rather than our weird global ...
3 years, 11 months ago (2017-01-09 21:52:32 UTC) #9
RyanSturm
On 2017/01/09 21:52:32, Charlie Harrison wrote: > It is okay with me. We're "polluting" a ...
3 years, 11 months ago (2017-01-09 22:52:28 UTC) #10
RyanSturm
tbansal: PTAL at data_reduction_proxy csharrison: PTAL at PLM
3 years, 11 months ago (2017-01-10 23:03:27 UTC) #18
RyanSturm
tbansal: PTAL at data_reduction_proxy csharrison: PTAL at PLM
3 years, 11 months ago (2017-01-10 23:03:28 UTC) #19
tbansal1
lgtm % nits components/d_r_p https://codereview.chromium.org/2619243003/diff/40001/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/2619243003/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode37 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:37: namespace data_reduction_proxy { why was ...
3 years, 11 months ago (2017-01-10 23:19:27 UTC) #22
Charlie Harrison
c/b/l and page_load_metrics looks good too, but just one request for a bit more refactoring. ...
3 years, 11 months ago (2017-01-11 14:37:18 UTC) #23
Bryan McQuade
looks good, thanks! just one question - glad to see this land. https://codereview.chromium.org/2619243003/diff/40001/chrome/browser/page_load_metrics/page_load_tracker.cc File chrome/browser/page_load_metrics/page_load_tracker.cc ...
3 years, 11 months ago (2017-01-11 14:46:50 UTC) #25
RyanSturm
Adding bmcquade back since I addressed his comment and a little more. csharrison/bmcquade: PTAL @ ...
3 years, 11 months ago (2017-01-11 23:03:54 UTC) #30
RyanSturm
droger: PTAL @ prerender_browsertest.cc. Thanks!
3 years, 11 months ago (2017-01-11 23:05:59 UTC) #33
Bryan McQuade
LGTM, thanks!
3 years, 11 months ago (2017-01-11 23:40:25 UTC) #34
Charlie Harrison
page_load_metrics and chrome/browser/loader lgtm, thanks!
3 years, 11 months ago (2017-01-12 03:16:22 UTC) #37
droger
lgtm
3 years, 11 months ago (2017-01-12 13:20:23 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2619243003/60001
3 years, 11 months ago (2017-01-12 19:01:11 UTC) #41
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 19:07:57 UTC) #44
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d2051030e7d9a6ffdfd5f6bde903...

Powered by Google App Engine
This is Rietveld 408576698