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

Issue 576313002: Re-add resource speculative prefetching code (Closed)

Created:
6 years, 3 months ago by Zhen Wang
Modified:
6 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, shishir+watch_chromium.org, cbentzel+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Re-add resource speculative prefetching code This CL fixes the memory leak bug in CL 462423004. See https://codereview.chromium.org/462423004/ for previous code reviews. ------------------------- Original CL description ------------------------- Revert CL 117933003. Re-add speculative resource prefetching code. https://codereview.chromium.org/117933003/ The speculative resource prefetching code was experimental code developed by shishir@. He found that it has little improvement on desktop Chrome (win). We though this should be beneficial to mobile browsers. After discussing with tburkard@ and kenjibaheux@, we decided to bring the code back and do more analysis on mobile devices. Reverting the patchset to re-add the code is the first step. The following design doc has discussed all related approaches and action items. https://docs.google.com/a/google.com/document/d/1ie3hu-zNNXvmTXm3aJAtKUGOh6nZfbNjA0aZE1bzzIg/edit?usp=sharing BUG=408399, 405690 Committed: https://crrev.com/9f71822da5a865c09675be7a7ac37f5089317fec Cr-Commit-Position: refs/heads/master@{#295626}

Patch Set 1 : Patch CL 462423004 #

Patch Set 2 : fix memory leak #

Patch Set 3 : add comments #

Patch Set 4 : rebase to fix patch failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5753 lines, -1 line) Patch
A chrome/browser/net/resource_prefetch_predictor_observer.h View 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/net/resource_prefetch_predictor_observer.cc View 1 chunk +202 lines, -0 lines 0 comments Download
M chrome/browser/predictors/predictor_database.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/predictors/predictor_database.cc View 8 chunks +18 lines, -1 line 0 comments Download
A chrome/browser/predictors/resource_prefetch_common.h View 1 chunk +116 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_common.cc View 1 chunk +245 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor.h View 1 chunk +314 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor.cc View 1 chunk +1222 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_factory.h View 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_factory.cc View 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h View 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc View 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 chunk +160 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 chunk +513 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 1 chunk +472 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 chunk +925 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher.h View 1 chunk +165 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher.cc View 1 chunk +240 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.h View 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.cc View 1 chunk +135 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_unittest.cc View 1 2 1 chunk +359 lines, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/predictors/predictors.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/predictors/predictors.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/predictors/resource_prefetch_predictor.html View 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/resources/predictors/resource_prefetch_predictor.js View 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.cc View 3 chunks +77 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Zhen Wang
Hi Lei, This CL fixes the memory leak bug in CL 462423004. https://codereview.chromium.org/462423004/ We actually ...
6 years, 3 months ago (2014-09-18 14:37:01 UTC) #2
Lei Zhang
On 2014/09/18 14:37:01, Zhen Wang wrote: > Hi Lei, > > This CL fixes the ...
6 years, 3 months ago (2014-09-18 17:06:40 UTC) #3
Zhen Wang
> Can you try changing ResourcePrefetcherFinished() to take a > scoped_ptr<ResourcePrefetcher::RequestVector> instead of a raw ...
6 years, 3 months ago (2014-09-18 18:54:09 UTC) #4
Lei Zhang
On 2014/09/18 18:54:09, Zhen Wang wrote: > > Can you try changing ResourcePrefetcherFinished() to take ...
6 years, 3 months ago (2014-09-18 19:36:05 UTC) #5
Zhen Wang
> Wild stab: scoped_ptr is a template class. Try MOCK_METHODn_T? If that doesn't > work ...
6 years, 3 months ago (2014-09-18 23:41:22 UTC) #6
Lei Zhang
lgtm
6 years, 3 months ago (2014-09-18 23:44:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/576313002/60001
6 years, 3 months ago (2014-09-19 00:11:14 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001) as c78b9ec100ab0ef932a3b8c6403f2bb4c335285e
6 years, 3 months ago (2014-09-19 00:41:18 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 00:41:55 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9f71822da5a865c09675be7a7ac37f5089317fec
Cr-Commit-Position: refs/heads/master@{#295626}

Powered by Google App Engine
This is Rietveld 408576698