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(); |
} |