1 // Copyright 2014 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.
5 package com
.android
.webview
.chromium
;
7 import android
.webkit
.WebViewDatabase
;
9 import org
.chromium
.android_webview
.AwFormDatabase
;
10 import org
.chromium
.android_webview
.HttpAuthDatabase
;
13 * Chromium implementation of WebViewDatabase -- forwards calls to the
14 * chromium internal implementation.
16 @SuppressWarnings("deprecation")
17 final class WebViewDatabaseAdapter
extends WebViewDatabase
{
18 private AwFormDatabase mFormDatabase
;
19 private HttpAuthDatabase mHttpAuthDatabase
;
21 public WebViewDatabaseAdapter(AwFormDatabase formDatabase
, HttpAuthDatabase httpAuthDatabase
) {
22 mFormDatabase
= formDatabase
;
23 mHttpAuthDatabase
= httpAuthDatabase
;
27 public boolean hasUsernamePassword() {
28 // This is a deprecated API: intentional no-op.
33 public void clearUsernamePassword() {
34 // This is a deprecated API: intentional no-op.
38 public boolean hasHttpAuthUsernamePassword() {
39 return mHttpAuthDatabase
.hasHttpAuthUsernamePassword();
43 public void clearHttpAuthUsernamePassword() {
44 mHttpAuthDatabase
.clearHttpAuthUsernamePassword();
48 public boolean hasFormData() {
49 return mFormDatabase
.hasFormData();
53 public void clearFormData() {
54 mFormDatabase
.clearFormData();