| Index: android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java b/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..750b3383a704d430a07058e659d7336cafd2b64b
|
| --- /dev/null
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.android_webview;
|
| +
|
| +/**
|
| + * This class provides a way to create the native WebContents.
|
| + */
|
| +public abstract class AndroidWebViewUtil {
|
| + // TODO(mkosiba): rename to ContentViewUtil when we stop linking against chrome/ (or share the
|
| + // chrome/ ContentViewUtil).
|
| + private AndroidWebViewUtil() {
|
| + }
|
| +
|
| + /**
|
| + * @return pointer to native WebContents instance, suitable for using with a
|
| + * (java) ContentViewCore instance.
|
| + */
|
| + public static int createNativeWebContents(boolean incognito) {
|
| + return nativeCreateNativeWebContents(incognito);
|
| + }
|
| +
|
| + private static native int nativeCreateNativeWebContents(boolean incognito);
|
| +}
|
|
|