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

Issue 2861473003: [PageLoadMetrics] Reland - Keep track of Ad Sizes on Pages (Closed)

Created:
3 years, 7 months ago by jkarlin
Modified:
3 years, 7 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, subresource-filter-reviews_chromium.org, speed-metrics-reviews_chromium.org, jam, Randy Smith (Not in Mondays), loading-reviews+metrics_chromium.org, csharrison+watch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, loading-reviews_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of https://codereview.chromium.org/2798953002 where the observer is disabled since it's still broken. [PageLoadMetrics] Keep track of Ad Sizes on Pages In order to help us understand the resource footprint that ads have on webpages, we need to measure things like their network and cache utilizations. This CL adds a PageLoadObserver that keeps track of frames with ads and reports statistics on the number of ad frames found on the page, the size of the ad frames, and the percentage that came from cache vs network. As part of the work, the following additional changes were necessary: 1) Frame Tree ID and URL are added to extra request info 2) Add GetRenderFrameHostGetterForRequest to ResourceRequestInfo so that ChromeResourceDispatcherHostDelegate can get at the frame tree node id of the resource. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation BUG=708570, 717892 TBR=bmcquade,clamy,jam,csharrison,isherman Review-Url: https://codereview.chromium.org/2861473003 Cr-Commit-Position: refs/heads/master@{#469042} Committed: https://chromium.googlesource.com/chromium/src/+/73af8befbc973943ac062ccd7d48b73ecc61de60

Patch Set 1 : Original Patch #

Patch Set 2 : Disable observer by default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1354 lines, -74 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 3 chunks +10 lines, -7 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 3 chunks +7 lines, -2 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer.h View 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer.cc View 1 1 chunk +298 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer_unittest.cc View 1 chunk +528 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer_unittest.cc View 3 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc View 3 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/media_page_load_metrics_observer_unittest.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/resource_tracking_page_load_metrics_observer_unittest.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer_unittest.cc View 4 chunks +24 lines, -22 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/tab_restore_page_load_metrics_observer_unittest.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_initialize.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_observer.h View 5 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_observer.cc View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_tracker.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M content/public/browser/resource_request_info.h View 3 chunks +13 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +246 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Charlie Harrison
LGTM
3 years, 7 months ago (2017-05-03 17:30:33 UTC) #6
Charlie Harrison
Can you include in the comments what has changed with this CL?
3 years, 7 months ago (2017-05-03 17:31:20 UTC) #8
jkarlin
On 2017/05/03 17:31:20, Charlie Harrison wrote: > Can you include in the comments what has ...
3 years, 7 months ago (2017-05-03 17:33:20 UTC) #9
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/2861473003/20001
3 years, 7 months ago (2017-05-03 17:34:30 UTC) #12
Charlie Harrison
On 2017/05/03 17:33:20, jkarlin wrote: > On 2017/05/03 17:31:20, Charlie Harrison wrote: > > Can ...
3 years, 7 months ago (2017-05-03 17:35:28 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 18:38:07 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/73af8befbc973943ac062ccd7d48...

Powered by Google App Engine
This is Rietveld 408576698