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

Unified Diff: content/browser/android/web_contents_observer_android.cc

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 6 years, 7 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/browser/android/web_contents_observer_android.cc
diff --git a/content/browser/android/web_contents_observer_android.cc b/content/browser/android/web_contents_observer_android.cc
index 72b22417d1185a9a1cb1c4a81ede0904333410fb..1dd850762e79d729f63823b6d7a60f5808f1eb35 100644
--- a/content/browser/android/web_contents_observer_android.cc
+++ b/content/browser/android/web_contents_observer_android.cc
@@ -95,6 +95,14 @@ void WebContentsObserverAndroid::DidStopLoading(
env, obj.obj(), jstring_url.obj());
}
+void WebContentsObserverAndroid::DidDeferAfterResponseStarted() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj(weak_java_observer_.get(env));
+ if (obj.is_null())
+ return;
+ Java_WebContentsObserverAndroid_didDeferAfterResponseStarted(env, obj.obj());
+}
+
void WebContentsObserverAndroid::DidFailProvisionalLoad(
int64 frame_id,
const base::string16& frame_unique_name,

Powered by Google App Engine
This is Rietveld 408576698