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

Issue 14746002: Add WebPrescientNetworking to trigger preconnect from Blink. (Closed)

Created:
7 years, 7 months ago by kouhei (in TOK)
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, jeez, abarth_chromum.org, haraken, cbentzel, tburkard
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add a new interface WebPrescientNetworking to trigger preconnect from Blink. The preconnect from Blink is always issued with motivation information WebPreconnectMotivation, so we can evaluate precision/coverage of the triggers. This API is to be triggered from {mouse,gesture}-events on HTMLAnchorElement. BUG=235361 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150344

Patch Set 1 #

Patch Set 2 : revised motivation list #

Patch Set 3 : add preconnect if to WebPrerenderingSupport #

Patch Set 4 : minimize cl #

Total comments: 3

Patch Set 5 : change comment #

Patch Set 6 : fix coding style #

Total comments: 6

Patch Set 7 : 'use static_cast / no pure virtual #

Total comments: 5

Patch Set 8 : nits #

Total comments: 5

Patch Set 9 : use WebPrescientNetworking instead of WebPrerenderingSupport #

Total comments: 16

Patch Set 10 : access WebPrescientNetworking via Platform #

Patch Set 11 : remove core.gypi from CL #

Patch Set 12 : fix comment #

Total comments: 4

Patch Set 13 : add missing decl #

Patch Set 14 : add virtual d-tor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -10 lines) Patch
M Source/Platform/Platform.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/Platform/chromium/public/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
A + Source/Platform/chromium/public/WebPrescientNetworking.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
kouhei (in TOK)
Could you review this patch?
7 years, 7 months ago (2013-05-01 04:04:49 UTC) #1
kouhei (in TOK)
+CCs
7 years, 7 months ago (2013-05-01 04:06:18 UTC) #2
kouhei (in TOK)
The below patch covers the implementation of the platform API added in this patch: https://codereview.chromium.org/14746002/
7 years, 7 months ago (2013-05-01 06:14:18 UTC) #3
kouhei (in TOK)
Oops. I meant: https://codereview.chromium.org/14749005/
7 years, 7 months ago (2013-05-01 06:14:45 UTC) #4
tkent
I don't think this should be in the platform API, which provides functionality to help ...
7 years, 7 months ago (2013-05-01 23:07:28 UTC) #5
kouhei (in TOK)
On 2013/05/01 23:07:28, tkent wrote: > I don't think this should be in the platform ...
7 years, 7 months ago (2013-05-02 11:00:26 UTC) #6
kouhei (in TOK)
Updated patch. Could you review? The patch now uses WebPrerenderingSupport instead of platform API.
7 years, 7 months ago (2013-05-07 09:12:05 UTC) #7
cbentzel
Gavin knows the WebPrerenderingSupport bit the best, adding him to review list.
7 years, 7 months ago (2013-05-07 12:06:03 UTC) #8
tkent
I don't own Source/Platform/. https://codereview.chromium.org/14746002/diff/13001/Source/Platform/chromium/public/WebPrerenderingSupport.h File Source/Platform/chromium/public/WebPrerenderingSupport.h (right): https://codereview.chromium.org/14746002/diff/13001/Source/Platform/chromium/public/WebPrerenderingSupport.h#newcode48 Source/Platform/chromium/public/WebPrerenderingSupport.h:48: // preconnect to the host ...
7 years, 7 months ago (2013-05-08 23:12:47 UTC) #9
kouhei (in TOK)
Thank you for comments! https://chromiumcodereview.appspot.com/14746002/diff/13001/Source/core/platform/network/Preconnect.cpp File Source/core/platform/network/Preconnect.cpp (right): https://chromiumcodereview.appspot.com/14746002/diff/13001/Source/core/platform/network/Preconnect.cpp#newcode32 Source/core/platform/network/Preconnect.cpp:32: #include "Preconnect.h" On 2013/05/08 23:12:47, ...
7 years, 7 months ago (2013-05-09 01:08:34 UTC) #10
tkent
https://chromiumcodereview.appspot.com/14746002/diff/20002/Source/Platform/chromium/public/WebPrerenderingSupport.h File Source/Platform/chromium/public/WebPrerenderingSupport.h (right): https://chromiumcodereview.appspot.com/14746002/diff/20002/Source/Platform/chromium/public/WebPrerenderingSupport.h#newcode49 Source/Platform/chromium/public/WebPrerenderingSupport.h:49: // session initialization latency to the server providing the ...
7 years, 7 months ago (2013-05-09 02:33:55 UTC) #11
kouhei (in TOK)
Thanks! Updated patch. https://codereview.chromium.org/14746002/diff/20002/Source/core/platform/network/Preconnect.cpp File Source/core/platform/network/Preconnect.cpp (right): https://codereview.chromium.org/14746002/diff/20002/Source/core/platform/network/Preconnect.cpp#newcode44 Source/core/platform/network/Preconnect.cpp:44: case PreconnectMotivationLinkMouseDown: On 2013/05/09 02:33:55, tkent ...
7 years, 7 months ago (2013-05-09 03:19:29 UTC) #12
tkent
lgtm for files owned by me. https://codereview.chromium.org/14746002/diff/27001/Source/Platform/chromium/public/WebPrerenderingSupport.h File Source/Platform/chromium/public/WebPrerenderingSupport.h (right): https://codereview.chromium.org/14746002/diff/27001/Source/Platform/chromium/public/WebPrerenderingSupport.h#newcode51 Source/Platform/chromium/public/WebPrerenderingSupport.h:51: WebPreconnectMotivation motivation) {} ...
7 years, 7 months ago (2013-05-09 03:31:16 UTC) #13
kouhei (in TOK)
Updated patch for nits. Thanks! https://codereview.chromium.org/14746002/diff/27001/Source/Platform/chromium/public/WebPrerenderingSupport.h File Source/Platform/chromium/public/WebPrerenderingSupport.h (right): https://codereview.chromium.org/14746002/diff/27001/Source/Platform/chromium/public/WebPrerenderingSupport.h#newcode51 Source/Platform/chromium/public/WebPrerenderingSupport.h:51: WebPreconnectMotivation motivation) {} On ...
7 years, 7 months ago (2013-05-09 03:42:54 UTC) #14
gavinp
Nice. Should we also add a rel type to the link element (in a later ...
7 years, 7 months ago (2013-05-09 14:42:49 UTC) #15
kouhei (in TOK)
abarth: Could you review this patch? In specific, Source/Platform/chromium/public/*?
7 years, 7 months ago (2013-05-10 00:40:25 UTC) #16
kouhei (in TOK)
> Should we also add a rel type to the link element (in a later ...
7 years, 7 months ago (2013-05-10 00:43:39 UTC) #17
gavinp
On 2013/05/10 00:43:39, Kouhei_UENO wrote: > > Should we also add a rel type to ...
7 years, 7 months ago (2013-05-10 14:36:03 UTC) #18
abarth-chromium
https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h File Source/Platform/chromium/public/WebPreconnectMotivation.h (right): https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h#newcode40 Source/Platform/chromium/public/WebPreconnectMotivation.h:40: WebPreconnectMotivationLinkTapDown, Technically this is a layering violation. The Platform ...
7 years, 7 months ago (2013-05-10 16:57:25 UTC) #19
kouhei (in TOK)
https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h File Source/Platform/chromium/public/WebPreconnectMotivation.h (right): https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h#newcode40 Source/Platform/chromium/public/WebPreconnectMotivation.h:40: WebPreconnectMotivationLinkTapDown, On 2013/05/10 16:57:25, abarth wrote: > Technically this ...
7 years, 7 months ago (2013-05-13 01:31:47 UTC) #20
abarth-chromium
On 2013/05/13 01:31:47, Kouhei_UENO wrote: > https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h > File Source/Platform/chromium/public/WebPreconnectMotivation.h (right): > > https://codereview.chromium.org/14746002/diff/33001/Source/Platform/chromium/public/WebPreconnectMotivation.h#newcode40 > ...
7 years, 7 months ago (2013-05-13 17:49:55 UTC) #21
kouhei (in TOK)
Updated patch to use a new interface WebPrescientNetworking. Its implementation is on https://codereview.chromium.org/14749005/ abarth: Would ...
7 years, 7 months ago (2013-05-14 06:05:27 UTC) #22
abarth-chromium
https://codereview.chromium.org/14746002/diff/43001/Source/Platform/chromium/public/WebPrescientNetworking.h File Source/Platform/chromium/public/WebPrescientNetworking.h (right): https://codereview.chromium.org/14746002/diff/43001/Source/Platform/chromium/public/WebPrescientNetworking.h#newcode40 Source/Platform/chromium/public/WebPrescientNetworking.h:40: // FIXME (kouhei): Passing preconnect motivation to net is ...
7 years, 7 months ago (2013-05-14 06:18:55 UTC) #23
kouhei (in TOK)
Updated patch: access instance via Platform. nits fixed. https://chromiumcodereview.appspot.com/14746002/diff/43001/Source/Platform/chromium/public/WebPrescientNetworking.h File Source/Platform/chromium/public/WebPrescientNetworking.h (right): https://chromiumcodereview.appspot.com/14746002/diff/43001/Source/Platform/chromium/public/WebPrescientNetworking.h#newcode40 Source/Platform/chromium/public/WebPrescientNetworking.h:40: // ...
7 years, 7 months ago (2013-05-14 06:34:06 UTC) #24
abarth-chromium
LGTM! Thanks for iterating on the CL. https://chromiumcodereview.appspot.com/14746002/diff/55002/Source/Platform/chromium/public/Platform.h File Source/Platform/chromium/public/Platform.h (right): https://chromiumcodereview.appspot.com/14746002/diff/55002/Source/Platform/chromium/public/Platform.h#newcode272 Source/Platform/chromium/public/Platform.h:272: virtual WebPrescientNetworking* ...
7 years, 7 months ago (2013-05-14 06:38:47 UTC) #25
kouhei (in TOK)
Thank you for review! https://codereview.chromium.org/14746002/diff/55002/Source/Platform/chromium/public/Platform.h File Source/Platform/chromium/public/Platform.h (right): https://codereview.chromium.org/14746002/diff/55002/Source/Platform/chromium/public/Platform.h#newcode272 Source/Platform/chromium/public/Platform.h:272: virtual WebPrescientNetworking* prescientNetworking() { return ...
7 years, 7 months ago (2013-05-14 07:25:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/14746002/58001
7 years, 7 months ago (2013-05-14 07:25:54 UTC) #27
commit-bot: I haz the power
7 years, 7 months ago (2013-05-14 20:12:51 UTC) #28
Message was sent while issue was closed.
Change committed as 150344

Powered by Google App Engine
This is Rietveld 408576698