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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
index 6c1a32d0d6d75f86703f20e74dd9a043068b9327..168fc12d466ae40df723485c62e9bd6190c11a93 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
@@ -173,14 +173,16 @@ public interface TabObserver {
* staying in the same html document, {@link #onLoadStarted(Tab)} will be called, while
* {@link #onPageLoadStarted(Tab, String)} will not.
* @param tab The notifying {@link Tab}.
+ * @param toDifferentDocument Whether this navigation will transition between
+ * documents (i.e., not a fragment navigation or JS History API call).
*/
- void onLoadStarted(Tab tab);
+ void onLoadStarted(Tab tab, boolean toDifferentDocument);
/**
* Called when the contents loading stops.
* @param tab The notifying {@link Tab}.
*/
- void onLoadStopped(Tab tab);
+ void onLoadStopped(Tab tab, boolean toDifferentDocument);
/**
* Called when the load progress of a {@link Tab} changes.

Powered by Google App Engine
This is Rietveld 408576698