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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java

Issue 675133002: Export GetLastCommittedEntryIndex and RemoveEntryAtIndex to Java layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java b/content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java
index d9c18690cb9d7a2eb9d74ddf54b2a01b278ffa06..7a22b74768c72bffbb4678ef68e3295a1f1014dc 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java
@@ -141,4 +141,15 @@ public interface NavigationController {
* exists.
*/
public NavigationEntry getPendingEntry();
+
+ /**
+ * @return The index of the last committed entry.
+ */
+ public int getLastCommittedEntryIndex();
+
+ /**
+ * Removes the entry at the specified |index|.
Charlie Reis 2014/10/29 20:20:55 Can you also update this to reflect https://codere
Jaekyun Seok (inactive) 2014/10/30 04:42:34 Done.
+ * @return false, if the index is the last committed index or the pending entry.
+ */
+ public boolean removeEntryAtIndex(int index);
}

Powered by Google App Engine
This is Rietveld 408576698