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

Issue 10817004: Adds speculative prefetching of resources. (Closed)

Created:
8 years, 5 months ago by Shishir
Modified:
8 years, 3 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, mmenke
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adds speculative prefetching of resources. The learning component was already checked in. BUG=None TEST=To be done. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156926

Patch Set 1 #

Total comments: 96

Patch Set 2 : Addressing Dominich's comments. #

Total comments: 29

Patch Set 3 : Addressing Dominich's comments round 2. #

Patch Set 4 : Syncing to HEAD #

Patch Set 5 : Adding Unittest. #

Total comments: 10

Patch Set 6 : Addressing Dominich's comments. #

Total comments: 2

Patch Set 7 : Addressing Dominich's comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1253 lines, -51 lines) Patch
M chrome/browser/predictors/predictor_database.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_common.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_common.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 5 6 9 chunks +31 lines, -28 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 6 13 chunks +216 lines, -17 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_factory.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/predictors/resource_prefetcher.h View 1 2 3 4 1 chunk +159 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher.cc View 1 2 3 4 1 chunk +225 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.h View 1 2 3 4 5 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.cc View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_unittest.cc View 1 2 3 4 1 chunk +337 lines, -0 lines 1 comment Download
M chrome/browser/prerender/prerender_field_trial.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Shishir
Please take a look. If the structure looks ok, I will add the tests.
8 years, 5 months ago (2012-07-22 07:06:15 UTC) #1
dominich
The structure looks ok, though I have concerns regarding ownership of objects and use of ...
8 years, 5 months ago (2012-07-23 16:04:41 UTC) #2
Shishir
Removed all delegates and linked ptrs :) Please take a look. http://codereview.chromium.org/10817004/diff/1/chrome/browser/predictors/resource_prefetch_common.h File chrome/browser/predictors/resource_prefetch_common.h (right): ...
8 years, 4 months ago (2012-08-01 22:35:24 UTC) #3
dominich
http://codereview.chromium.org/10817004/diff/10001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): http://codereview.chromium.org/10817004/diff/10001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode361 chrome/browser/predictors/resource_prefetch_predictor.cc:361: base::Passed(requests.Pass()))); I believe you can use &requests instead of ...
8 years, 4 months ago (2012-08-02 15:00:50 UTC) #4
Shishir
https://chromiumcodereview.appspot.com/10817004/diff/10001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://chromiumcodereview.appspot.com/10817004/diff/10001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode361 chrome/browser/predictors/resource_prefetch_predictor.cc:361: base::Passed(requests.Pass()))); On 2012/08/02 15:00:50, dominich wrote: > I believe ...
8 years, 4 months ago (2012-08-02 22:06:53 UTC) #5
dominich
LGTM https://chromiumcodereview.appspot.com/10817004/diff/10001/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://chromiumcodereview.appspot.com/10817004/diff/10001/chrome/browser/predictors/resource_prefetcher.cc#newcode86 chrome/browser/predictors/resource_prefetcher.cc:86: config_.max_prefetches_inflight_per_navigation) && On 2012/08/02 22:06:54, Shishir wrote: > ...
8 years, 4 months ago (2012-08-02 22:10:15 UTC) #6
Shishir
Added unittest and also reverted the design between ResourcePrefetcher and its manager to a Delegate ...
8 years, 3 months ago (2012-09-10 23:14:15 UTC) #7
Ben Goodger (Google)
lgtm
8 years, 3 months ago (2012-09-11 15:23:26 UTC) #8
dominich
http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode134 chrome/browser/predictors/resource_prefetch_predictor.cc:134: prefetch_manager_->ShutdownOnUIThread(); As this is a ProfileKeyedService this might belong ...
8 years, 3 months ago (2012-09-11 17:40:11 UTC) #9
Shishir
PTAL http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode134 chrome/browser/predictors/resource_prefetch_predictor.cc:134: prefetch_manager_->ShutdownOnUIThread(); On 2012/09/11 17:40:11, dominich wrote: > As ...
8 years, 3 months ago (2012-09-11 18:18:08 UTC) #10
dominich
http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetcher_unittest.cc File chrome/browser/predictors/resource_prefetcher_unittest.cc (right): http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetcher_unittest.cc#newcode149 chrome/browser/predictors/resource_prefetcher_unittest.cc:149: TEST_F(ResourcePrefetcherTest, TestPrefetcherFinishes) { On 2012/09/11 18:18:08, Shishir wrote: > ...
8 years, 3 months ago (2012-09-11 18:40:43 UTC) #11
Shishir
http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetcher_unittest.cc File chrome/browser/predictors/resource_prefetcher_unittest.cc (right): http://codereview.chromium.org/10817004/diff/33001/chrome/browser/predictors/resource_prefetcher_unittest.cc#newcode149 chrome/browser/predictors/resource_prefetcher_unittest.cc:149: TEST_F(ResourcePrefetcherTest, TestPrefetcherFinishes) { On 2012/09/11 18:40:43, dominich wrote: > ...
8 years, 3 months ago (2012-09-11 19:36:31 UTC) #12
dominich
LGTM
8 years, 3 months ago (2012-09-11 19:41:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10817004/30006
8 years, 3 months ago (2012-09-13 19:07:01 UTC) #14
Shishir
Unchecking the commit bot because there seems to be a related crasher in canary I ...
8 years, 3 months ago (2012-09-13 21:06:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10817004/30006
8 years, 3 months ago (2012-09-14 22:04:06 UTC) #16
commit-bot: I haz the power
Change committed as 156926
8 years, 3 months ago (2012-09-14 23:29:11 UTC) #17
Lei Zhang
8 years, 3 months ago (2012-09-15 01:45:11 UTC) #18
https://chromiumcodereview.appspot.com/10817004/diff/30006/chrome/browser/pre...
File chrome/browser/predictors/resource_prefetcher_unittest.cc (right):

https://chromiumcodereview.appspot.com/10817004/diff/30006/chrome/browser/pre...
chrome/browser/predictors/resource_prefetcher_unittest.cc:62:
TestURLRequestContextGetter* request_context_getter_;
This probably should have been a scoped_ptr.

Powered by Google App Engine
This is Rietveld 408576698