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

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: Update comments 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/framehost/NavigationControllerImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..13ec1892d5a45d982d0e963633ec2ec143097302 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,16 @@ 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|.
+ * @return false, if the index is the last committed index or the pending entry. Otherwise this
+ * call discards any transient or pending entries.
+ */
+ public boolean removeEntryAtIndex(int index);
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/framehost/NavigationControllerImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698