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

Issue 334483004: Enable resource prefetch from the browser process. (Closed)

Created:
6 years, 6 months ago by tburkard
Modified:
6 years, 6 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, Nate Chapin, miu+watch_chromium.org, nasko+codewatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : fix compile bug #

Patch Set 3 : make change in chrome rather than content #

Total comments: 14

Patch Set 4 : address feedback #

Patch Set 5 : add test per jochen's request #

Total comments: 7

Patch Set 6 : add comment about test #

Total comments: 10

Patch Set 7 : jochen's nits #

Total comments: 4

Patch Set 8 : fetch priority, copyright notice dates #

Patch Set 9 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -7 lines) Patch
M chrome/browser/prefetch/prefetch_browsertest.cc View 1 2 3 4 5 6 4 chunks +77 lines, -7 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/prefetch_messages.h View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/renderer/prefetch_helper.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/renderer/prefetch_helper.cc View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
tburkard
I discussed this change with all of you. It'd be great if you could review ...
6 years, 6 months ago (2014-06-12 18:53:41 UTC) #1
jam
Is this part of the web platform? Or an experimental chrome-specific feature? Because right now ...
6 years, 6 months ago (2014-06-12 19:39:55 UTC) #2
tburkard
Good point. I now realize how I could do this entirely in chrome. I will ...
6 years, 6 months ago (2014-06-12 20:02:20 UTC) #3
tburkard
Moved this completely to chrome. jam, could you review the ipc part. jochen, could you ...
6 years, 6 months ago (2014-06-13 13:16:14 UTC) #4
jochen (gone - plz use gerrit)
needs moar tests https://codereview.chromium.org/334483004/diff/40001/chrome/renderer/prefetch_helper.cc File chrome/renderer/prefetch_helper.cc (right): https://codereview.chromium.org/334483004/diff/40001/chrome/renderer/prefetch_helper.cc#newcode18 chrome/renderer/prefetch_helper.cc:18: PrefetchManager() { } nit. no space ...
6 years, 6 months ago (2014-06-13 16:42:56 UTC) #5
jam
lgtm with comments. i'm not an ipc owner so you will need someone from security ...
6 years, 6 months ago (2014-06-13 16:44:38 UTC) #6
jkarlin
https://codereview.chromium.org/334483004/diff/40001/chrome/renderer/prefetch_helper.cc File chrome/renderer/prefetch_helper.cc (right): https://codereview.chromium.org/334483004/diff/40001/chrome/renderer/prefetch_helper.cc#newcode70 chrome/renderer/prefetch_helper.cc:70: prefetch_manager_->AddPrefetch(render_frame()->GetWebFrame(), url); On 2014/06/13 16:42:56, jochen traveling until Jun ...
6 years, 6 months ago (2014-06-13 16:53:46 UTC) #7
tburkard
Addressed all comments except for the test Jochen asked for. Jochen, I will send another ...
6 years, 6 months ago (2014-06-13 18:35:46 UTC) #8
jschuh
This message is browser -> renderer?
6 years, 6 months ago (2014-06-13 19:21:55 UTC) #9
tburkard
On 2014/06/13 19:21:55, Justin Schuh wrote: > This message is browser -> renderer? Yes.
6 years, 6 months ago (2014-06-15 05:53:52 UTC) #10
tburkard
Added the test Jochen requested. Jochen, Josh, and Justin: can you take another pass and ...
6 years, 6 months ago (2014-06-16 14:20:58 UTC) #11
jschuh
ipc security lgtm (notes: no security impact)
6 years, 6 months ago (2014-06-16 14:38:44 UTC) #12
jkarlin
https://codereview.chromium.org/334483004/diff/80001/chrome/renderer/prefetch_helper.cc File chrome/renderer/prefetch_helper.cc (right): https://codereview.chromium.org/334483004/diff/80001/chrome/renderer/prefetch_helper.cc#newcode35 chrome/renderer/prefetch_helper.cc:35: blink::WebURLRequest request(url); Where are you setting the priority of ...
6 years, 6 months ago (2014-06-16 14:43:27 UTC) #13
jkarlin
https://codereview.chromium.org/334483004/diff/80001/chrome/browser/prefetch/prefetch_browsertest.cc File chrome/browser/prefetch/prefetch_browsertest.cc (right): https://codereview.chromium.org/334483004/diff/80001/chrome/browser/prefetch/prefetch_browsertest.cc#newcode186 chrome/browser/prefetch/prefetch_browsertest.cc:186: loop_.Run(); What is this test testing exactly?
6 years, 6 months ago (2014-06-16 14:48:29 UTC) #14
tburkard
https://codereview.chromium.org/334483004/diff/80001/chrome/browser/prefetch/prefetch_browsertest.cc File chrome/browser/prefetch/prefetch_browsertest.cc (right): https://codereview.chromium.org/334483004/diff/80001/chrome/browser/prefetch/prefetch_browsertest.cc#newcode186 chrome/browser/prefetch/prefetch_browsertest.cc:186: loop_.Run(); On 2014/06/16 14:48:29, jkarlin wrote: > What is ...
6 years, 6 months ago (2014-06-16 15:02:58 UTC) #15
jkarlin
https://codereview.chromium.org/334483004/diff/80001/chrome/renderer/prefetch_helper.cc File chrome/renderer/prefetch_helper.cc (right): https://codereview.chromium.org/334483004/diff/80001/chrome/renderer/prefetch_helper.cc#newcode35 chrome/renderer/prefetch_helper.cc:35: blink::WebURLRequest request(url); On 2014/06/16 15:02:57, tburkard wrote: > On ...
6 years, 6 months ago (2014-06-16 15:31:02 UTC) #16
tburkard
Once blink has rolled, I will set the priority appropriately as described below. Meanwhile, Jochen/Josh, ...
6 years, 6 months ago (2014-06-17 04:02:15 UTC) #17
jochen (gone - plz use gerrit)
lgtm with nits https://codereview.chromium.org/334483004/diff/100001/chrome/browser/prefetch/prefetch_browsertest.cc File chrome/browser/prefetch/prefetch_browsertest.cc (right): https://codereview.chromium.org/334483004/diff/100001/chrome/browser/prefetch/prefetch_browsertest.cc#newcode99 chrome/browser/prefetch/prefetch_browsertest.cc:99: net::NetworkDelegate* network_delegate) nit, please clang-format https://codereview.chromium.org/334483004/diff/100001/chrome/browser/prefetch/prefetch_browsertest.cc#newcode103 ...
6 years, 6 months ago (2014-06-17 04:25:18 UTC) #18
tburkard
https://codereview.chromium.org/334483004/diff/100001/chrome/browser/prefetch/prefetch_browsertest.cc File chrome/browser/prefetch/prefetch_browsertest.cc (right): https://codereview.chromium.org/334483004/diff/100001/chrome/browser/prefetch/prefetch_browsertest.cc#newcode99 chrome/browser/prefetch/prefetch_browsertest.cc:99: net::NetworkDelegate* network_delegate) On 2014/06/17 04:25:17, jochen traveling until Jun ...
6 years, 6 months ago (2014-06-17 09:13:03 UTC) #19
jkarlin
https://codereview.chromium.org/334483004/diff/120001/chrome/common/prefetch_messages.h File chrome/common/prefetch_messages.h (right): https://codereview.chromium.org/334483004/diff/120001/chrome/common/prefetch_messages.h#newcode1 chrome/common/prefetch_messages.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
6 years, 6 months ago (2014-06-17 10:15:33 UTC) #20
tburkard
Everything addressed, including priority. Josh, can you take another look? Thanks. https://codereview.chromium.org/334483004/diff/80001/chrome/renderer/prefetch_helper.cc File chrome/renderer/prefetch_helper.cc (right): ...
6 years, 6 months ago (2014-06-17 10:46:52 UTC) #21
jkarlin
On 2014/06/17 10:46:52, tburkard wrote: > Everything addressed, including priority. > > Josh, can you ...
6 years, 6 months ago (2014-06-17 10:54:28 UTC) #22
tburkard
The CQ bit was checked by tburkard@chromium.org
6 years, 6 months ago (2014-06-17 10:56:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tburkard@chromium.org/334483004/140001
6 years, 6 months ago (2014-06-17 10:58:58 UTC) #24
tburkard
The CQ bit was checked by tburkard@chromium.org
6 years, 6 months ago (2014-06-17 12:17:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tburkard@chromium.org/334483004/160001
6 years, 6 months ago (2014-06-17 12:19:54 UTC) #26
tburkard
6 years, 6 months ago (2014-06-17 15:02:44 UTC) #27
Message was sent while issue was closed.
Committed patchset #9 manually as r277761 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698