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

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed)

Created:
7 years, 7 months ago by kouhei (in TOK)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, haraken, tburkard
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement WebPrescientNetworking to trigger preconnect from blink. Note to gardener: This patch requires the following Blink patch to be landed first: https://codereview.chromium.org/14746002/ This API is to be triggered from {mouse,gesture}-events on HTMLAnchorElement. BUG=235361 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202370

Patch Set 1 #

Total comments: 10

Patch Set 2 : use WebPrerenderingSupport instead of platform API / removed motivationId #

Total comments: 4

Patch Set 3 : removed leftover change / early return #

Total comments: 4

Patch Set 4 : rebase / style fix #

Patch Set 5 : use WebPrescientNetworking #

Patch Set 6 : disable actual preconnect for now #

Patch Set 7 : use WebKitPlatformSupport to access WebPrescientNetworking impl. #

Patch Set 8 : remove UrlInfo decl #

Total comments: 4

Patch Set 9 : rebase / GetPrescientNetworking #

Patch Set 10 : rebase again #

Patch Set 11 : rebase only #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : style nit #

Patch Set 14 : rebase only #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -9 lines) Patch
M chrome/browser/net/predictor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/renderer/net/prescient_networking_dispatcher.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/renderer/net/prescient_networking_dispatcher.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 1 comment Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
kouhei (in TOK)
Could you review this patch?
7 years, 7 months ago (2013-05-01 06:04:24 UTC) #1
kouhei (in TOK)
Few notes: The paramaeter "motivationVariationId" is to experiment minor trigger variations. For {mouse,touch}-event prefetch, I ...
7 years, 7 months ago (2013-05-01 06:13:02 UTC) #2
mmenke
[+jar] I am not familiar with this code. I believe jar is. Also, it's generally ...
7 years, 7 months ago (2013-05-01 14:39:46 UTC) #3
jam
https://codereview.chromium.org/14749005/diff/1/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/14749005/diff/1/content/public/renderer/content_renderer_client.h#newcode211 content/public/renderer/content_renderer_client.h:211: uint32_t motivationVariationId) {} nit: google c++ naming style (i.e. ...
7 years, 7 months ago (2013-05-01 14:58:10 UTC) #4
kouhei (in TOK)
> Also, it's generally better to have a domain owner review a CL first, and ...
7 years, 7 months ago (2013-05-02 09:50:43 UTC) #5
kouhei (in TOK)
Thank you for your comments. https://codereview.chromium.org/14749005/diff/1/content/renderer/renderer_webkitplatformsupport_impl.h File content/renderer/renderer_webkitplatformsupport_impl.h (right): https://codereview.chromium.org/14749005/diff/1/content/renderer/renderer_webkitplatformsupport_impl.h#newcode56 content/renderer/renderer_webkitplatformsupport_impl.h:56: virtual void preconnect(const WebKit::WebURL& ...
7 years, 7 months ago (2013-05-02 10:15:25 UTC) #6
jar (doing other things)
https://codereview.chromium.org/14749005/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/14749005/diff/1/chrome/browser/net/predictor.cc#newcode281 chrome/browser/net/predictor.cc:281: BrowserThread::CurrentlyOn(BrowserThread::IO)); I need to check... but the old assertion ...
7 years, 7 months ago (2013-05-04 00:32:05 UTC) #7
kouhei (in TOK)
Updated patch. jam, jar: Could you take a look? https://codereview.chromium.org/14749005/diff/1/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/14749005/diff/1/chrome/browser/net/predictor.cc#newcode282 chrome/browser/net/predictor.cc:282: ...
7 years, 7 months ago (2013-05-07 09:16:12 UTC) #8
jam
https://codereview.chromium.org/14749005/diff/12001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/14749005/diff/12001/content/public/renderer/content_renderer_client.h#newcode219 content/public/renderer/content_renderer_client.h:219: uint32_t motivationVariationId) {} are changes to this file leftover?
7 years, 7 months ago (2013-05-07 16:22:35 UTC) #9
kouhei (in TOK)
https://codereview.chromium.org/14749005/diff/12001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/14749005/diff/12001/content/public/renderer/content_renderer_client.h#newcode219 content/public/renderer/content_renderer_client.h:219: uint32_t motivationVariationId) {} On 2013/05/07 16:22:36, jam wrote: > ...
7 years, 7 months ago (2013-05-07 16:30:46 UTC) #10
jar (doing other things)
predictor.* LGTM with nit shown below. https://codereview.chromium.org/14749005/diff/12001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/14749005/diff/12001/chrome/browser/net/predictor.cc#newcode285 chrome/browser/net/predictor.cc:285: if (preconnect_enabled()) { ...
7 years, 7 months ago (2013-05-08 01:34:25 UTC) #11
kouhei (in TOK)
gavinp: Could you review the prerender_dispatcher.* ? Thanks! removed content/public/renderer/content_renderer_client.h from CL. https://codereview.chromium.org/14749005/diff/12001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc ...
7 years, 7 months ago (2013-05-08 02:09:38 UTC) #12
gavinp
https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.h File chrome/renderer/prerender/prerender_dispatcher.h (right): https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.h#newcode44 chrome/renderer/prerender/prerender_dispatcher.h:44: // From WebPrerenderingSupport: Can you add me to the ...
7 years, 7 months ago (2013-05-08 11:16:55 UTC) #13
kouhei (in TOK)
https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.h File chrome/renderer/prerender/prerender_dispatcher.h (right): https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.h#newcode44 chrome/renderer/prerender/prerender_dispatcher.h:44: // From WebPrerenderingSupport: Blink side is here: https://codereview.chromium.org/14746002/ cbentzel ...
7 years, 7 months ago (2013-05-08 13:33:16 UTC) #14
gavinp
lgtm https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.cc File chrome/renderer/prerender/prerender_dispatcher.cc (right): https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.cc#newcode115 chrome/renderer/prerender/prerender_dispatcher.cc:115: )); These should move up to the previous ...
7 years, 7 months ago (2013-05-09 14:49:16 UTC) #15
kouhei (in TOK)
brettw: Could you review chrome/browser/renderer_host* and chrome/common/render_messages.h? https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.cc File chrome/renderer/prerender/prerender_dispatcher.cc (right): https://codereview.chromium.org/14749005/diff/24001/chrome/renderer/prerender/prerender_dispatcher.cc#newcode115 chrome/renderer/prerender/prerender_dispatcher.cc:115: )); On ...
7 years, 7 months ago (2013-05-10 01:59:09 UTC) #16
kouhei (in TOK)
jochen: Would you review changes in chrome/**? jam: Would you review changes in content/**?
7 years, 7 months ago (2013-05-14 07:46:08 UTC) #17
kouhei (in TOK)
thakis: Would you review changes in chrome/**? jam: Would you review changes in content/**? > ...
7 years, 7 months ago (2013-05-16 01:47:23 UTC) #18
Nico
chrome/ lgtm modulo function name https://codereview.chromium.org/14749005/diff/28002/chrome/renderer/chrome_content_renderer_client.h File chrome/renderer/chrome_content_renderer_client.h (right): https://codereview.chromium.org/14749005/diff/28002/chrome/renderer/chrome_content_renderer_client.h#newcode109 chrome/renderer/chrome_content_renderer_client.h:109: virtual WebKit::WebPrescientNetworking* PrescientNetworking() OVERRIDE; ...
7 years, 7 months ago (2013-05-16 04:35:44 UTC) #19
kouhei (in TOK)
brettw: Would you review changes in content/**? > jam: Would you review changes in content/**? ...
7 years, 7 months ago (2013-05-16 07:02:50 UTC) #20
Nico
Sorry that I spend so much time on such a trivial matter as a function ...
7 years, 7 months ago (2013-05-16 18:26:16 UTC) #21
kouhei (in TOK)
thakis: Thanks for review! https://codereview.chromium.org/14749005/diff/28002/chrome/renderer/chrome_content_renderer_client.h File chrome/renderer/chrome_content_renderer_client.h (right): https://codereview.chromium.org/14749005/diff/28002/chrome/renderer/chrome_content_renderer_client.h#newcode109 chrome/renderer/chrome_content_renderer_client.h:109: virtual WebKit::WebPrescientNetworking* PrescientNetworking() OVERRIDE; On ...
7 years, 7 months ago (2013-05-17 01:48:05 UTC) #22
kouhei (in TOK)
brettw: Would you review changes in content/**? Thanks.
7 years, 7 months ago (2013-05-21 00:52:36 UTC) #23
brettw
content lgtm with style nit https://codereview.chromium.org/14749005/diff/72005/content/public/renderer/content_renderer_client.cc File content/public/renderer/content_renderer_client.cc (right): https://codereview.chromium.org/14749005/diff/72005/content/public/renderer/content_renderer_client.cc#newcode130 content/public/renderer/content_renderer_client.cc:130: WebKit::WebPrescientNetworking* ContentRendererClient::GetPrescientNetworking() { Line ...
7 years, 7 months ago (2013-05-21 18:03:56 UTC) #24
kouhei (in TOK)
Thanks for review! https://codereview.chromium.org/14749005/diff/72005/content/public/renderer/content_renderer_client.cc File content/public/renderer/content_renderer_client.cc (right): https://codereview.chromium.org/14749005/diff/72005/content/public/renderer/content_renderer_client.cc#newcode130 content/public/renderer/content_renderer_client.cc:130: WebKit::WebPrescientNetworking* ContentRendererClient::GetPrescientNetworking() { On 2013/05/21 18:03:56, ...
7 years, 7 months ago (2013-05-21 23:42:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/14749005/84001
7 years, 7 months ago (2013-05-21 23:57:06 UTC) #26
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=4094
7 years, 7 months ago (2013-05-22 00:07:16 UTC) #27
kouhei (in TOK)
cevans: Would you take a look at render_messages.h? I added an IPC to tell "Predictor" ...
7 years, 7 months ago (2013-05-22 00:51:15 UTC) #28
kouhei (in TOK)
cevans: ping. I appreciate if you could review this patch, as this is blocking me ...
7 years, 7 months ago (2013-05-23 00:33:34 UTC) #29
Chris Evans
On 2013/05/23 00:33:34, kouhei wrote: > cevans: ping. I appreciate if you could review this ...
7 years, 7 months ago (2013-05-24 18:55:24 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/14749005/84001
7 years, 7 months ago (2013-05-27 00:05:31 UTC) #31
commit-bot: I haz the power
Failed to apply patch for chrome/renderer/chrome_content_renderer_client.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-27 00:05:34 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/14749005/98001
7 years, 7 months ago (2013-05-27 00:43:54 UTC) #33
commit-bot: I haz the power
Change committed as 202370
7 years, 7 months ago (2013-05-27 05:48:00 UTC) #34
kouhei (in TOK)
Thanks for review!
7 years, 7 months ago (2013-05-27 09:04:04 UTC) #35
jam
https://chromiumcodereview.appspot.com/14749005/diff/98001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://chromiumcodereview.appspot.com/14749005/diff/98001/content/public/renderer/content_renderer_client.h#newcode217 content/public/renderer/content_renderer_client.h:217: virtual WebKit::WebPrescientNetworking* GetPrescientNetworking(); for WebKit classes that are implemented ...
7 years, 6 months ago (2013-06-03 16:41:28 UTC) #36
kouhei (in TOK)
On 2013/06/03 16:41:28, jam wrote: > https://chromiumcodereview.appspot.com/14749005/diff/98001/content/public/renderer/content_renderer_client.h > File content/public/renderer/content_renderer_client.h (right): > > https://chromiumcodereview.appspot.com/14749005/diff/98001/content/public/renderer/content_renderer_client.h#newcode217 > ...
7 years, 6 months ago (2013-06-04 16:48:29 UTC) #37
jam
On 2013/06/04 16:48:29, kouhei wrote: > On 2013/06/03 16:41:28, jam wrote: > > > https://chromiumcodereview.appspot.com/14749005/diff/98001/content/public/renderer/content_renderer_client.h ...
7 years, 6 months ago (2013-06-04 17:08:26 UTC) #38
kouhei (in TOK)
On 2013/06/04 17:08:26, jam wrote: > On 2013/06/04 16:48:29, kouhei wrote: > > On 2013/06/03 ...
7 years, 6 months ago (2013-06-04 21:59:14 UTC) #39
jam
On 2013/06/04 21:59:14, kouhei wrote: > On 2013/06/04 17:08:26, jam wrote: > > On 2013/06/04 ...
7 years, 6 months ago (2013-06-10 17:42:12 UTC) #40
kouhei (in TOK)
On 2013/06/10 17:42:12, jam wrote: > On 2013/06/04 21:59:14, kouhei wrote: > > On 2013/06/04 ...
7 years, 6 months ago (2013-06-10 18:07:48 UTC) #41
abarth-chromium
Long thread is long. Let me know if I missed the part you wanted me ...
7 years, 6 months ago (2013-06-11 18:31:46 UTC) #42
jam
7 years, 6 months ago (2013-06-11 20:34:59 UTC) #43
Message was sent while issue was closed.
i see, ok thanks for the explanation.

Powered by Google App Engine
This is Rietveld 408576698