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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/NavigationController.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_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 28a72cab9ebd989ffb3e6504f30c699db2abc955..f520d7ac7e3d28d96e518d5fa0e1ca184c59c3e5 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
@@ -77,4 +77,59 @@ public interface NavigationController {
* Continue the pending reload.
*/
public void continuePendingReload();
+
+ /**
+ * Load url without fixing up the url string. Consumers of NavigationController are
+ * responsible for ensuring the URL passed in is properly formatted (i.e. the
+ * scheme has been added if left off during user input).
+ * @param params Parameters for this load.
+ */
+ public void loadUrl(LoadUrlParams params);
+
+ /**
+ * Clears NavigationController's page history in both backwards and
+ * forwards directions.
+ */
+ public void clearHistory();
+
+ /**
+ * Get a copy of the navigation history of NavigationController.
+ * @return navigation history of NavigationController.
+ */
+ public NavigationHistory getNavigationHistory();
+
+ /**
+ * Get the navigation history of NavigationController from current navigation entry index
+ * with direction (forward/backward)
+ * @param isForward determines forward or backward from current index
+ * @param itemLimit maximum number of entries to be retrieved in specified
+ * diection.
+ * @return navigation history by keeping above constraints.
+ */
+ public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit);
+
+ /**
+ * Get Original URL for current Navigation entry of NavigationController.
+ * @return The original request URL for the current navigation entry, or null if there is no
+ * current entry.
+ */
+ public String getOriginalUrlForVisibleNavigationEntry();
+
+ /**
+ * Clears SSL preferences for this NavigationController.
+ */
+ public void clearSslPreferences();
+
+ /**
+ * Get whether or not we're using a desktop user agent for the currently loaded page.
+ * @return true, if use a desktop user agent and false for a mobile one.
+ */
+ public boolean getUseDesktopUserAgent();
+
+ /**
+ * Set whether or not we're using a desktop user agent for the currently loaded page.
+ * @param override If true, use a desktop user agent. Use a mobile one otherwise.
+ * @param reloadOnChange Reload the page if the UA has changed.
+ */
+ public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange);
}

Powered by Google App Engine
This is Rietveld 408576698