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

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: Removed unwanted headers Created 6 years, 5 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..2016771e7bcd0c38bd8e5516d27ea4beb799ed2a 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
@@ -4,6 +4,9 @@
package org.chromium.content_public.browser;
+import org.chromium.content.browser.LoadUrlParams;
+import org.chromium.content.browser.NavigationHistory;
+
/**
* The NavigationController Java wrapper to allow communicating with the native
* NavigationController object.
@@ -77,4 +80,59 @@ public interface NavigationController {
* Continue the pending reload.
*/
public void continuePendingReload();
+
+ /**
+ * Load url without fixing up the url string. Consumers of ContentView are responsible for
Yaron 2014/07/22 20:49:06 s/Consumers of ContentView/Clients of NavigationCo
AKVT 2014/07/23 11:49:23 Done.
+ * 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 the ContentViewCore's page history in both the backwards and
Yaron 2014/07/22 20:49:06 s/ContentViewCore/NavigationController/
AKVT 2014/07/23 11:49:23 Done.
+ * forwards directions.
+ */
+ public void clearHistory();
+
+ /**
+ * Get a copy of the navigation history of the view.
Yaron 2014/07/22 20:49:06 Ok, I'll stop commenting on view-related changes.
AKVT 2014/07/23 11:49:23 Done.
+ * @return navigation history of the view.
+ */
+ public NavigationHistory getNavigationHistory();
+
+ /**
+ * Get the navigation history of the view 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);
+
+ /**
+ * @return The original request URL for the current navigation entry, or null if there is no
+ * current entry.
+ */
+ public String getOriginalUrlForActiveNavigationEntry();
+
+ /**
+ * Clears SSL preferences for this WebContent Navigation Controller.
Yaron 2014/07/22 20:49:06 s/WebContent//
AKVT 2014/07/23 11:49:23 Done.
+ */
+ 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