| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |