| 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);
|
| }
|
|
|