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

Unified Diff: chrome/browser/prerender/external_prerender_handler_android.h

Issue 1710853002: android: Add a method to let Java know whether a prerender has finished loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/external_prerender_handler_android.h
diff --git a/chrome/browser/prerender/external_prerender_handler_android.h b/chrome/browser/prerender/external_prerender_handler_android.h
index 01862274885a75678035284da3f46ca4cbc1f9d0..6aae904e67d11461c24ec3451da77ccd613e8d9c 100644
--- a/chrome/browser/prerender/external_prerender_handler_android.h
+++ b/chrome/browser/prerender/external_prerender_handler_android.h
@@ -48,6 +48,13 @@ class ExternalPrerenderHandlerAndroid {
GURL url,
content::WebContents* web_contents);
+ // Whether the PrerenderManager associated with the given profile has any
+ // prerenders for the url, and the prerender has finished loading.
+ static bool HasPrerenderedAndFinishedLoadingUrl(
+ Profile* profile,
+ GURL url,
+ content::WebContents* web_contents);
+
static bool RegisterExternalPrerenderHandlerAndroid(JNIEnv* env);
private:

Powered by Google App Engine
This is Rietveld 408576698