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_public/browser/WebContents.java

Issue 970883002: [Android WebView] Synthesize a fake page loading event on page source modification (Re-land) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed findbugs warning Created 5 years, 10 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/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 19021612cb0aeff4784ffe89ce49caa610f0d831..19b00b220e8104733889ba9e9a0ace3bf98a2bce 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -139,6 +139,14 @@ public interface WebContents {
public String getUrl();
/**
+ * Gets the last committed URL. It represents the current page that is
+ * displayed in this WebContents. It represents the current security context.
+ *
+ * @return The last committed URL.
+ */
+ public String getLastCommittedUrl();
+
+ /**
* Get the InCognito state of WebContents.
*
* @return whether this WebContents is in InCognito mode or not
@@ -213,4 +221,12 @@ public interface WebContents {
* org.chromium.content_public.common.ConsoleMessageLevel.
*/
public void addMessageToDevToolsConsole(int level, String message);
+
+ /**
+ * Returns whether the initial empty page has been accessed by a script from another
+ * page. Always false after the first commit.
+ *
+ * @return Whether the initial empty page has been accessed by a script.
+ */
+ public boolean hasAccessedInitialDocument();
}

Powered by Google App Engine
This is Rietveld 408576698