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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/WebContentsObserverAndroid.java

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, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import org.chromium.base.CalledByNative; 7 import org.chromium.base.CalledByNative;
8 import org.chromium.base.JNINamespace; 8 import org.chromium.base.JNINamespace;
9 9
10 /** 10 /**
(...skipping 22 matching lines...) Expand all
33 33
34 /** 34 /**
35 * Called when the a page finishes loading. 35 * Called when the a page finishes loading.
36 * @param url The validated url for the page. 36 * @param url The validated url for the page.
37 */ 37 */
38 @CalledByNative 38 @CalledByNative
39 public void didStopLoading(String url) { 39 public void didStopLoading(String url) {
40 } 40 }
41 41
42 /** 42 /**
43 * Called when the page defers navigation immediately after receiving respon se headers.
44 */
45 @CalledByNative
46 public void didDeferAfterResponseStarted() {
47 }
48
49 /**
43 * Called when an error occurs while loading a page and/or the page fails to load. 50 * Called when an error occurs while loading a page and/or the page fails to load.
44 * @param errorCode Error code for the occurring error. 51 * @param errorCode Error code for the occurring error.
45 * @param description The description for the error. 52 * @param description The description for the error.
46 * @param failingUrl The url that was loading when the error occurred. 53 * @param failingUrl The url that was loading when the error occurred.
47 */ 54 */
48 @CalledByNative 55 @CalledByNative
49 public void didFailLoad(boolean isProvisionalLoad, 56 public void didFailLoad(boolean isProvisionalLoad,
50 boolean isMainFrame, int errorCode, String description, String faili ngUrl) { 57 boolean isMainFrame, int errorCode, String description, String faili ngUrl) {
51 } 58 }
52 59
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 public void detachFromWebContents() { 167 public void detachFromWebContents() {
161 if (mNativeWebContentsObserverAndroid != 0) { 168 if (mNativeWebContentsObserverAndroid != 0) {
162 nativeDestroy(mNativeWebContentsObserverAndroid); 169 nativeDestroy(mNativeWebContentsObserverAndroid);
163 mNativeWebContentsObserverAndroid = 0; 170 mNativeWebContentsObserverAndroid = 0;
164 } 171 }
165 } 172 }
166 173
167 private native long nativeInit(long contentViewCorePtr); 174 private native long nativeInit(long contentViewCorePtr);
168 private native void nativeDestroy(long nativeWebContentsObserverAndroid); 175 private native void nativeDestroy(long nativeWebContentsObserverAndroid);
169 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698