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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java

Issue 686213003: Make WebContentsObserver pass more calls to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/browser/android/web_contents_observer_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java b/content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java
index 4a98e9235754df84c9d35d6119569ba12edcfe7f..77e0a6195de2ed7d8751df4c91cedaafa3aa6469 100644
--- a/content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java
+++ b/content/public/android/java/src/org/chromium/content/browser/WebContentsObserver.java
@@ -22,6 +22,14 @@ public abstract class WebContentsObserver {
mNativeWebContentsObserverAndroid = nativeInit(webContents);
}
+ /**
+ * Called when the RenderView of the current RenderViewHost is ready, e.g. because we recreated
+ * it after a crash.
+ */
+ @CalledByNative
+ public void renderViewReady() {
+ }
+
@CalledByNative
public void renderProcessGone(boolean wasOomProtected) {
}
@@ -99,6 +107,13 @@ public abstract class WebContentsObserver {
}
/**
+ * Called once the window.document object of the main frame was created.
+ */
+ @CalledByNative
+ public void documentAvailableInMainFrame() {
+ }
+
+ /**
* Notifies that a load is started for a given frame.
* @param frameId A positive, non-zero integer identifying the navigating frame.
* @param parentFrameId The frame identifier of the frame containing the navigating frame,
« no previous file with comments | « content/browser/android/web_contents_observer_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698