Make the resource_prefetch_predictor accessible from Custom Tabs.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/588e88df5847e11703ffdf063f621d38a66a5fa4 commit 588e88df5847e11703ffdf063f621d38a66a5fa4 Author: lizeb <lizeb@chromium.org> Date: Wed Oct 12 15:30:33 2016 customtabs: Add a flag to mayLaunchUrl() to force prefetch. This adds a flag to mayLaunchUrl() to prevent it from doing a prerender, forcing the high confidence version to only issue a prefetch request (using the resource_prefetch_predictor here). This is needed to test and evaluate it, and is intended for testing purposes only, as the "no prerendering" flag is as well. BUG= 650250 ,631966 Review-Url: https://codereview.chromium.org/2403023002 Cr-Commit-Position: refs/heads/master@{#424742} [modify] https://crrev.com/588e88df5847e11703ffdf063f621d38a66a5fa4/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java [modify] https://crrev.com/588e88df5847e11703ffdf063f621d38a66a5fa4/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java [modify] https://crrev.com/588e88df5847e11703ffdf063f621d38a66a5fa4/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java [modify] https://crrev.com/588e88df5847e11703ffdf063f621d38a66a5fa4/tools/android/customtabs_benchmark/java/src/org/chromium/customtabs/test/MainActivity.java
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/88af26a7ceb6bf5a35b12f14d70f761360d98b56 commit 88af26a7ceb6bf5a35b12f14d70f761360d98b56 Author: lizeb <lizeb@chromium.org> Date: Tue Nov 15 17:51:07 2016 predictors: Expose the initialization call to Android. The resource_prefetch_predictor needs to be initialized before issuing prefetches. The initialization is usually triggered by the first page load completion, but this is not suitable for external triggering on Android. This exposes the initialization method to the Java side. BUG= 650250 ,631966 Review-Url: https://codereview.chromium.org/2498983005 Cr-Commit-Position: refs/heads/master@{#432213} [modify] https://crrev.com/88af26a7ceb6bf5a35b12f14d70f761360d98b56/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java [modify] https://crrev.com/88af26a7ceb6bf5a35b12f14d70f761360d98b56/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ResourcePrefetchPredictor.java [modify] https://crrev.com/88af26a7ceb6bf5a35b12f14d70f761360d98b56/chrome/browser/predictors/resource_prefetch_predictor.cc [modify] https://crrev.com/88af26a7ceb6bf5a35b12f14d70f761360d98b56/chrome/browser/predictors/resource_prefetch_predictor.h [modify] https://crrev.com/88af26a7ceb6bf5a35b12f14d70f761360d98b56/chrome/browser/predictors/resource_prefetch_predictor_android.cc
Comment 1 by lizeb@chromium.org
, Sep 26 2016