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

Issue 644123002: Componentize renderer side of DNS prefetching. (Closed)

Created:
6 years, 2 months ago by gunsch
Modified:
6 years, 1 month ago
CC:
chromium-reviews, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, wzhong, lcwu1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Componentize renderer side of DNS prefetching. BUG=419909 Committed: https://crrev.com/edf5a93c4b9b3a5a2b318f9c1973e9d8ff2c768a Cr-Commit-Position: refs/heads/master@{#304529}

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix IPC message #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Total comments: 11

Patch Set 5 : predictor --> dns_prefetch #

Patch Set 6 : LOG(ERROR) --> LOG(DFATAL) for IPC checks #

Total comments: 4

Patch Set 7 : Adds IPC::ParamTraits<LookupRequest> for validation #

Total comments: 4

Patch Set 8 : address thakis's latest comments #

Patch Set 9 : rebase #

Total comments: 2

Patch Set 10 : OWNERS change: cbentzel --> ttuttle #

Total comments: 1

Patch Set 11 : alphabetize chrome/browser/DEPS change #

Patch Set 12 : rebase to head #

Patch Set 13 : trybot fixes: 1) hide gyp target from ios 2) UintToString --> SizeTToString #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -909 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/predictor.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/net/predictor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 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 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/net/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/net/predictor_common.h View 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 1 chunk +1 line, -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 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/renderer/net/predictor_queue.h View 1 chunk +0 lines, -87 lines 0 comments Download
D chrome/renderer/net/predictor_queue.cc View 1 chunk +0 lines, -152 lines 0 comments Download
D chrome/renderer/net/predictor_queue_unittest.cc View 1 chunk +0 lines, -262 lines 0 comments Download
M chrome/renderer/net/prescient_networking_dispatcher.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/renderer/net/renderer_net_predictor.h View 1 chunk +0 lines, -103 lines 0 comments Download
D chrome/renderer/net/renderer_net_predictor.cc View 1 chunk +0 lines, -163 lines 0 comments Download
D chrome/renderer/net/renderer_predictor_unittest.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
A components/dns_prefetch.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +51 lines, -0 lines 0 comments Download
A + components/dns_prefetch/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
A + components/dns_prefetch/common/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -9 lines 0 comments Download
A + components/dns_prefetch/common/DEPS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/dns_prefetch/common/prefetch_common.h View 1 2 3 4 5 6 2 chunks +19 lines, -7 lines 0 comments Download
A components/dns_prefetch/common/prefetch_common.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A + components/dns_prefetch/common/prefetch_message_generator.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + components/dns_prefetch/common/prefetch_message_generator.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
A components/dns_prefetch/common/prefetch_messages.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A components/dns_prefetch/common/prefetch_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
A components/dns_prefetch/renderer/BUILD.gn View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A + components/dns_prefetch/renderer/DEPS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + components/dns_prefetch/renderer/predictor_queue.h View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
A + components/dns_prefetch/renderer/predictor_queue.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
A + components/dns_prefetch/renderer/predictor_queue_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + components/dns_prefetch/renderer/renderer_net_predictor.h View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
A + components/dns_prefetch/renderer/renderer_net_predictor.cc View 1 2 3 4 5 6 5 chunks +13 lines, -11 lines 0 comments Download
A + components/dns_prefetch/renderer/renderer_net_predictor_unittest.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 44 (12 generated)
gunsch
cbentzel: for the code/structure itself. blundell: for new component / general componentization structure jam: for ...
6 years, 2 months ago (2014-10-10 20:59:24 UTC) #2
palmer
https://codereview.chromium.org/644123002/diff/1/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/644123002/diff/1/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode67 chrome/browser/renderer_host/chrome_render_message_filter.cc:67: IPC_MESSAGE_HANDLER(DnsPredictorMsg_RequestPrefetch, OnDnsPrefetch) I'm not sure I understand the issue? ...
6 years, 2 months ago (2014-10-13 23:56:22 UTC) #3
blundell
Will (the browser side of) this component eventually be used on iOS?
6 years, 2 months ago (2014-10-14 06:57:47 UTC) #4
gunsch
Blundell: I don't know, does iOS currently do any prefetching at all? The chrome/browser implementation ...
6 years, 2 months ago (2014-10-14 15:54:39 UTC) #5
blundell
component structure LGTM. The name seems too generic to me though. Should this component be ...
6 years, 2 months ago (2014-10-15 09:15:34 UTC) #6
jam
On 2014/10/10 20:59:24, gunsch wrote: > cbentzel: for the code/structure itself. > blundell: for new ...
6 years, 2 months ago (2014-10-15 16:14:52 UTC) #7
palmer
> As far as I can tell, in Chrome's current implementation, the limit is only ...
6 years, 2 months ago (2014-10-15 19:16:13 UTC) #8
cbentzel
On 2014/10/15 19:16:13, Chromium Palmer wrote: > > As far as I can tell, in ...
6 years, 2 months ago (2014-10-20 16:21:31 UTC) #9
gunsch
-jam thakis@: can you take a look at chrome/ changes? This is largely structural refactoring. ...
6 years, 1 month ago (2014-10-28 19:55:31 UTC) #11
Nico
chrome lgtm (except for the logging). i also left a bikeshed comment on the component's ...
6 years, 1 month ago (2014-10-28 20:07:20 UTC) #12
gunsch
+jar: original author of the prefetch code, tentatively added as OWNERS of the new component. ...
6 years, 1 month ago (2014-10-28 20:47:32 UTC) #14
Nico
https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc#newcode742 chrome/browser/net/predictor.cc:742: << hostnames.size(); On 2014/10/28 20:47:32, gunsch wrote: > If ...
6 years, 1 month ago (2014-10-28 20:56:42 UTC) #15
gunsch
https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc#newcode742 chrome/browser/net/predictor.cc:742: << hostnames.size(); That sounds practical, can you point me ...
6 years, 1 month ago (2014-10-28 21:11:30 UTC) #16
Nico
https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc#newcode742 chrome/browser/net/predictor.cc:742: << hostnames.size(); On 2014/10/28 21:11:29, gunsch wrote: > That ...
6 years, 1 month ago (2014-10-28 21:31:18 UTC) #17
jar (doing other things)
https://codereview.chromium.org/644123002/diff/570001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/644123002/diff/570001/chrome/browser/net/predictor.cc#newcode741 chrome/browser/net/predictor.cc:741: LOG(DFATAL) << "Refusing to prefetch too many hostnames: " ...
6 years, 1 month ago (2014-10-28 22:49:32 UTC) #18
Nico
https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc#newcode742 chrome/browser/net/predictor.cc:742: << hostnames.size(); Even better, we even have a web ...
6 years, 1 month ago (2014-10-29 22:16:35 UTC) #19
gunsch
PTAL: this now includes custom validation when deserializing at the IPC layer. https://codereview.chromium.org/644123002/diff/530001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc ...
6 years, 1 month ago (2014-10-29 23:58:29 UTC) #20
Nico
lgtm, thanks. Might want to have a security person (palmer, tsepez, …) have a look ...
6 years, 1 month ago (2014-10-30 00:03:05 UTC) #21
gunsch
thakis@: palmer@ is on this review, will definitely wait for his approval. Thanks for looking. ...
6 years, 1 month ago (2014-10-30 00:32:50 UTC) #22
jar (doing other things)
Patch set 9 LGTM
6 years, 1 month ago (2014-10-30 17:50:30 UTC) #24
gunsch
ping? -nasko (OOO) +creis: please review for content/ OWNERS. there's a "new dependency" on content/public/renderer ...
6 years, 1 month ago (2014-10-31 17:02:59 UTC) #27
Charlie Reis
On 2014/10/31 17:02:59, gunsch wrote: > ping? > > -nasko (OOO) > +creis: please review ...
6 years, 1 month ago (2014-10-31 17:37:20 UTC) #28
palmer
LGTM. Something like net::Hostname can and should come in a future CL. https://codereview.chromium.org/644123002/diff/630001/components/dns_prefetch/common/prefetch_messages.cc File components/dns_prefetch/common/prefetch_messages.cc ...
6 years, 1 month ago (2014-10-31 18:46:23 UTC) #29
cbentzel
https://codereview.chromium.org/644123002/diff/630001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/644123002/diff/630001/components/OWNERS#newcode47 components/OWNERS:47: per-file dns_prefetch*=cbentzel@chromium.org I'm probably not a good reviewer for ...
6 years, 1 month ago (2014-11-04 17:45:19 UTC) #30
gunsch
On 2014/11/04 17:45:19, cbentzel wrote: > https://codereview.chromium.org/644123002/diff/630001/components/OWNERS > File components/OWNERS (right): > > https://codereview.chromium.org/644123002/diff/630001/components/OWNERS#newcode47 > ...
6 years, 1 month ago (2014-11-04 17:50:34 UTC) #33
wzhong
https://codereview.chromium.org/644123002/diff/650001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/644123002/diff/650001/chrome/browser/DEPS#newcode57 chrome/browser/DEPS:57: "+components/dns_prefetch", Why is it not in alphabetical?
6 years, 1 month ago (2014-11-06 00:08:08 UTC) #35
Deprecated (see juliatuttle)
lgtm
6 years, 1 month ago (2014-11-12 18:24:13 UTC) #36
gunsch
Ah, looks like I still need one more approval. tsepez@: components/dns_prefetch/common/DEPS adds a dependency on ...
6 years, 1 month ago (2014-11-17 20:03:00 UTC) #39
Tom Sepez
LGTM.
6 years, 1 month ago (2014-11-17 20:05:52 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644123002/710001
6 years, 1 month ago (2014-11-17 23:48:30 UTC) #42
commit-bot: I haz the power
Committed patchset #13 (id:710001)
6 years, 1 month ago (2014-11-18 00:52:17 UTC) #43
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 00:53:06 UTC) #44
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/edf5a93c4b9b3a5a2b318f9c1973e9d8ff2c768a
Cr-Commit-Position: refs/heads/master@{#304529}

Powered by Google App Engine
This is Rietveld 408576698