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

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed)

Created:
4 years, 8 months ago by Charlie Harrison
Modified:
4 years, 8 months ago
Reviewers:
kinuko, esprehn, Nate Chapin
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, Bryan McQuade, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, jam, Nate Chapin, jkarlin, kinuko+watch, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Propogate loading behavior data from Blink to content/ This patch adds an enum describing various loading metadata. These bits are set when the Document hits various codepaths, e.g. new loading features. The metadata is then propagated into content/ for use by content consumers. The primary use case for this new API is to aid in metrics collection. This is part 1 of a 2 part patch set where the page_load_metrics system will use the metadata to separate separate histograms in the browser process. The second patch can be found here: https://codereview.chromium.org/1857443002/ BUG=594159 Committed: https://crrev.com/ae811ab72369dbbbb5bb3694c1fc618672099353 Cr-Commit-Position: refs/heads/master@{#386365}

Patch Set 1 #

Patch Set 2 : namespace blink #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : Name and comment changes #

Patch Set 5 : Change null enum name #

Total comments: 10

Patch Set 6 : Change "data" to "behavior" throughout #

Patch Set 7 : Updated comments from self review #

Total comments: 5

Patch Set 8 : japhet@ review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -2 lines) Patch
M content/public/renderer/render_frame_observer.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (13 generated)
Charlie Harrison
esprehn@ is the architecture of where WebExperimentData lives okay (i.e. public/platform)? @kinuko for general review ...
4 years, 8 months ago (2016-04-01 17:59:19 UTC) #4
Charlie Harrison
cc jkarlin, bmcquade
4 years, 8 months ago (2016-04-01 18:05:14 UTC) #5
kinuko
As I wrote in the other private thread the current interface that uses 'experiment' in ...
4 years, 8 months ago (2016-04-04 09:40:58 UTC) #6
esprehn
Why can't we just use uma inside blink? I'm not very comfortable having a new ...
4 years, 8 months ago (2016-04-04 15:25:31 UTC) #7
kinuko
On 2016/04/04 15:25:31, esprehn wrote: > Why can't we just use uma inside blink? For ...
4 years, 8 months ago (2016-04-04 15:41:55 UTC) #8
Charlie Harrison
I think the idea is a bit broader than runtime flags. Perhaps (as discussed in ...
4 years, 8 months ago (2016-04-04 16:42:37 UTC) #9
esprehn
Why is there more context in chrome? Do you mean the browser process? This patch ...
4 years, 8 months ago (2016-04-04 16:44:47 UTC) #10
Charlie Harrison
On 2016/04/04 16:44:47, esprehn wrote: > Why is there more context in chrome? Do you ...
4 years, 8 months ago (2016-04-04 16:51:34 UTC) #12
kinuko
Assuming that what we want to do here is to tell the browser the renderer ...
4 years, 8 months ago (2016-04-05 11:21:02 UTC) #13
Charlie Harrison
On 2016/04/05 11:21:02, kinuko wrote: > Assuming that what we want to do here is ...
4 years, 8 months ago (2016-04-05 13:28:36 UTC) #14
kinuko
On 2016/04/05 13:28:36, csharrison wrote: > On 2016/04/05 11:21:02, kinuko wrote: > > Assuming that ...
4 years, 8 months ago (2016-04-05 16:07:30 UTC) #15
Charlie Harrison
On 2016/04/05 16:07:30, kinuko wrote: > On 2016/04/05 13:28:36, csharrison wrote: > > On 2016/04/05 ...
4 years, 8 months ago (2016-04-05 16:39:02 UTC) #16
Charlie Harrison
esprehn@, what do you think about this change, now that we've properly narrowed the focus ...
4 years, 8 months ago (2016-04-05 22:26:06 UTC) #19
esprehn
This seems okay, though I'll say long term I think you want to move all ...
4 years, 8 months ago (2016-04-05 22:32:17 UTC) #21
Charlie Harrison
On 2016/04/05 22:32:17, esprehn wrote: > This seems okay, though I'll say long term I ...
4 years, 8 months ago (2016-04-05 22:38:31 UTC) #22
kinuko
Namings look still a bit inconsistent, but otherwise looks good to me https://codereview.chromium.org/1846143003/diff/80001/content/public/renderer/render_frame_observer.h File content/public/renderer/render_frame_observer.h ...
4 years, 8 months ago (2016-04-06 05:54:14 UTC) #23
Charlie Harrison
Thanks for the suggestions! https://codereview.chromium.org/1846143003/diff/80001/content/public/renderer/render_frame_observer.h File content/public/renderer/render_frame_observer.h (right): https://codereview.chromium.org/1846143003/diff/80001/content/public/renderer/render_frame_observer.h#newcode117 content/public/renderer/render_frame_observer.h:117: // load. This is used ...
4 years, 8 months ago (2016-04-06 14:24:52 UTC) #24
Nate Chapin
LGTM https://codereview.chromium.org/1846143003/diff/120001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp File third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/1846143003/diff/120001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp#newcode1166 third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp:1166: document()->loader()->didObserveLoadingBehavior(WebLoadingBehaviorFlag::WebLoadingBehaviorDocumentWriteEvaluator); It feels a little weird to route ...
4 years, 8 months ago (2016-04-07 16:13:10 UTC) #25
Charlie Harrison
https://codereview.chromium.org/1846143003/diff/120001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp File third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/1846143003/diff/120001/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp#newcode1166 third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp:1166: document()->loader()->didObserveLoadingBehavior(WebLoadingBehaviorFlag::WebLoadingBehaviorDocumentWriteEvaluator); On 2016/04/07 at 16:13:10, Nate Chapin wrote: > ...
4 years, 8 months ago (2016-04-07 17:42:16 UTC) #27
Charlie Harrison
Thanks! esprehn@, kinuko@, PTAL.
4 years, 8 months ago (2016-04-07 17:42:25 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846143003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846143003/140001
4 years, 8 months ago (2016-04-07 17:43:05 UTC) #30
kinuko
lgtm/2
4 years, 8 months ago (2016-04-11 08:39:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846143003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846143003/140001
4 years, 8 months ago (2016-04-11 08:39:46 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-11 11:32:39 UTC) #36
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ae811ab72369dbbbb5bb3694c1fc618672099353 Cr-Commit-Position: refs/heads/master@{#386365}
4 years, 8 months ago (2016-04-11 11:34:34 UTC) #38
Ɓukasz Anforowicz
4 years, 8 months ago (2016-04-11 22:01:19 UTC) #39
Message was sent while issue was closed.
On 2016/04/11 11:34:34, commit-bot: I haz the power wrote:
> Patchset 8 (id:??) landed as
> https://crrev.com/ae811ab72369dbbbb5bb3694c1fc618672099353
> Cr-Commit-Position: refs/heads/master@{#386365}

After this CL mixed content layout tests started to behave flakily - please see
https://crbug.com/602421

Powered by Google App Engine
This is Rietveld 408576698