1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. |
4 | |
5 | package org.chromium.android_webview; |
6 | |
7 | import org.chromium.base.JNINamespace; |
8 | |
9 | /** |
10 | * Exposes a subset of Chromium form database to Webview database for managing autocomplete |
11 | * functionality. |
12 | */ |
13 | @JNINamespace("android_webview") |
14 | public class AwFormDatabase { |
15 | |
16 | public static boolean hasFormData() { |
17 | return nativeHasFormData(); |
18 | } |
19 | |
20 | public static void clearFormData() { |
21 | nativeClearFormData(); |
22 | } |
23 | |
24 | //-------------------------------------------------------------------------------------------- |
25 | // Native methods |
26 | //-------------------------------------------------------------------------------------------- |
27 | private static native boolean nativeHasFormData(); |
28 | |
29 | private static native void nativeClearFormData(); |
30 | } |