Revert of Revert CL 117933003. Re-add resource speculative prefetching code. (patchse...
commitf03864238c8a90971f6b0c4d0f5acb894c0dfcd2
authornhiroki <nhiroki@chromium.org>
Tue, 16 Sep 2014 04:57:07 +0000 (15 21:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Sep 2014 04:58:17 +0000 (16 04:58 +0000)
tree3faee5dfbefb01378013b219305c3226daee261e
parentd56989c2dd99ba9dd241952df0632397c58bfdfa
Revert of Revert CL 117933003. Re-add resource speculative prefetching code. (patchset #10 id:180001 of https://codereview.chromium.org/462423004/)

Reason for revert:
This caused a bunch of memory leaks in following tests:

- ResourcePrefetcherTest.TestPrefetcherFinishes
- ResourcePrefetcherTest.TestPrefetcherStopped

Linux Chromium OS ASan LSan Tests (3)
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%283%29/builds/3216

Linux ASan LSan Tests (2)
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Tests%20%282%29/builds/7460

Original issue's 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/825722d5939dc0832d124b70958501611e6a4628
> Cr-Commit-Position: refs/heads/master@{#294899}

TBR=shishir@chromium.org,tburkard@chromium.org,kenjibaheux@chromium.org,jam@chromium.org,thestig@chromium.org,zhenw@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=408399, 405690

Review URL: https://codereview.chromium.org/577543002

Cr-Commit-Position: refs/heads/master@{#295011}
37 files changed:
chrome/browser/net/resource_prefetch_predictor_observer.cc [deleted file]
chrome/browser/net/resource_prefetch_predictor_observer.h [deleted file]
chrome/browser/predictors/predictor_database.cc
chrome/browser/predictors/predictor_database.h
chrome/browser/predictors/resource_prefetch_common.cc [deleted file]
chrome/browser/predictors/resource_prefetch_common.h [deleted file]
chrome/browser/predictors/resource_prefetch_predictor.cc [deleted file]
chrome/browser/predictors/resource_prefetch_predictor.h [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_factory.cc [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_factory.h [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_tables.cc [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_tables.h [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc [deleted file]
chrome/browser/predictors/resource_prefetch_predictor_unittest.cc [deleted file]
chrome/browser/predictors/resource_prefetcher.cc [deleted file]
chrome/browser/predictors/resource_prefetcher.h [deleted file]
chrome/browser/predictors/resource_prefetcher_manager.cc [deleted file]
chrome/browser/predictors/resource_prefetcher_manager.h [deleted file]
chrome/browser/predictors/resource_prefetcher_unittest.cc [deleted file]
chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc
chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
chrome/browser/profiles/profile_io_data.cc
chrome/browser/profiles/profile_io_data.h
chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
chrome/browser/resources/predictors/predictors.html
chrome/browser/resources/predictors/predictors.js
chrome/browser/resources/predictors/resource_prefetch_predictor.html [deleted file]
chrome/browser/resources/predictors/resource_prefetch_predictor.js [deleted file]
chrome/browser/ui/tab_helpers.cc
chrome/browser/ui/webui/predictors/predictors_handler.cc
chrome/browser/ui/webui/predictors/predictors_handler.h
chrome/chrome_browser.gypi
chrome/chrome_tests_unit.gypi
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h