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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..72c9057ec173d36793edc4f1cef6407d18ac34ee |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.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.chrome.browser; |
+ |
+/** |
+ * This class provides a way to create the native WebContents required for instantiating a |
+ * ContentView. |
+ */ |
+public abstract class ContentViewUtil { |
+ // Don't instantiate me. |
+ private ContentViewUtil() { |
+ } |
+ |
+ /** |
+ * @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); |
+} |