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

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

Issue 378743002: Navigation transitions: Place transition page in same process as destination page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang build. Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/android/content_view_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java b/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
index ce0bb6818d572a94ba5b0858fbb42aa0f9c9f562..e5c9d523339ee6d10d14f435351db248d0917e45 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser;
+import org.chromium.content.browser.ContentViewCore;
+
/**
* This class provides a way to create the native WebContents required for instantiating a
* ContentView.
@@ -30,6 +32,15 @@ public abstract class ContentViewUtil {
}
/**
+ * @return pointer to native WebContents instance, suitable for using with a
+ * (java) ContentViewCore instance.
+ */
+ public static long createNativeWebContentsWithSharedSiteInstance(
+ ContentViewCore contentViewCore) {
+ return nativeCreateNativeWebContentsWithSharedSiteInstance(contentViewCore);
+ }
+
+ /**
* @param webContentsPtr The WebContents reference to be deleted.
*/
public static void destroyNativeWebContents(long webContentsPtr) {
@@ -38,5 +49,7 @@ public abstract class ContentViewUtil {
private static native long nativeCreateNativeWebContents(boolean incognito,
boolean initiallyHidden);
+ private static native long nativeCreateNativeWebContentsWithSharedSiteInstance(
+ ContentViewCore contentViewCore);
private static native void nativeDestroyNativeWebContents(long webContentsPtr);
}
« no previous file with comments | « no previous file | chrome/browser/android/content_view_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698