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

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

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch with findbugs_known_bugs.txt changes. Created 6 years, 3 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/browser/NavigationHistory.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/NavigationHistory.java b/content/public/android/java/src/org/chromium/content/browser/NavigationHistory.java
deleted file mode 100644
index 6e4347bfc5f36d0f97d8e17da7a0dbdbebc05996..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/NavigationHistory.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import java.util.ArrayList;
-
-/**
- * {@link NavigationHistory} captures a snapshot of the navigation history of a
- * {@link ContentViewCore}. It is a copy and will not be updated as navigation
- * occurs on the source {@link ContentViewCore}.
- */
-public class NavigationHistory {
-
- private final ArrayList<NavigationEntry> mEntries = new ArrayList<NavigationEntry>();
- private int mCurrentEntryIndex;
-
- protected void addEntry(NavigationEntry entry) {
- mEntries.add(entry);
- }
-
- /* package */ void setCurrentEntryIndex(int currentEntryIndex) {
- mCurrentEntryIndex = currentEntryIndex;
- }
-
- /**
- * @return The number of entries in the history.
- */
- public int getEntryCount() {
- return mEntries.size();
- }
-
- /**
- * Returns the {@link NavigationEntry} for the given index.
- */
- public NavigationEntry getEntryAtIndex(int index) {
- return mEntries.get(index);
- }
-
- /**
- * Returns the index of the entry the {@link ContentViewCore} was navigated to
- * when the history was fetched.
- */
- public int getCurrentEntryIndex() {
- return mCurrentEntryIndex;
- }
-
-}

Powered by Google App Engine
This is Rietveld 408576698