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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/Tab.java

Issue 949443002: Upstream ChromeTab.hasPrerenderedUrl to Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | chrome/browser/android/tab_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index 0ca6a7326c03caba84b56109116032fa87e7da60..a0b97361fd9e56b03a453e0cd79dc8dd68b6d8c9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -2464,6 +2464,11 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
return mAppBannerManager;
}
+ @VisibleForTesting
+ public boolean hasPrerenderedUrl(String url) {
+ return nativeHasPrerenderedUrl(mNativeTabAndroid, url);
+ }
+
/**
* Ensures the counter is at least as high as the specified value. The counter should always
* point to an unused ID (which will be handed out next time a request comes in). Exposed so
@@ -2507,5 +2512,7 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
ContentViewCore content, boolean visible);
private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid,
ContentViewCore content);
+ private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
+
private static native void nativeRecordStartupToCommitUma();
}
« no previous file with comments | « no previous file | chrome/browser/android/tab_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698