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

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

Issue 11473027: [Android] Should not update IME status when gesture needs to be disambiguated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add prerendering utilities to profile_android Created 7 years, 4 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/profiles/profile_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/profiles/Profile.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java b/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java
index 4cec13e80e9b36822a8047da50ba6a8d00dc9c72..915de760994d49baddc4722a591070386f522d40 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java
@@ -31,4 +31,24 @@ public class Profile {
private int getNativePointer() {
return mNativeProfileAndroid;
}
+
+ /**
+ * Check whether a given url has finished prerendering using the prerender
+ * manager associated with this profile
+ * @param url The url to check.
+ * @return Whether the given url has finished prerendering.
+ */
+ public boolean hasPrerenderedUrl(String url) {
+ return nativeHasPrerenderedUrl(mNativeProfileAndroid, url);
+ }
+
+ /**
+ * @return The java profile with the default native profile.
+ */
+ public static Profile getDefaultProfile() {
+ return new Profile(nativeGetDefaultProfile());
+ }
+
+ private static native int nativeGetDefaultProfile();
+ private static native boolean nativeHasPrerenderedUrl(int nativeProfileAndroid, String url);
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698