blob: e44d6ebf37d1ed9d709a8940b561aa2a53e9e69e [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.webkit;
18
Mathew Inwood42afea22018-08-16 19:18:28 +010019import android.annotation.UnsupportedAppUsage;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080020import android.content.Context;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021
Nate Fischer5cca7bd2017-09-26 18:51:49 -070022/**
Hector Dearmana70d1d92014-05-22 13:50:15 +010023 * @deprecated The WebSyncManager no longer does anything.
24 */
25@Deprecated
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080026abstract class WebSyncManager implements Runnable {
Hector Dearmana70d1d92014-05-22 13:50:15 +010027 protected static final java.lang.String LOGTAG = "websync";
28 protected android.webkit.WebViewDatabase mDataBase;
David Brazdilad857d62018-12-20 09:32:11 +000029 @UnsupportedAppUsage
Hector Dearmana70d1d92014-05-22 13:50:15 +010030 protected android.os.Handler mHandler;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080031
32 protected WebSyncManager(Context context, String name) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080033 }
34
35 protected Object clone() throws CloneNotSupportedException {
36 throw new CloneNotSupportedException("doesn't implement Cloneable");
37 }
38
39 public void run() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080040 }
41
42 /**
43 * sync() forces sync manager to sync now
44 */
45 public void sync() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080046 }
47
48 /**
49 * resetSync() resets sync manager's timer
50 */
51 public void resetSync() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080052 }
53
54 /**
55 * startSync() requests sync manager to start sync
56 */
57 public void startSync() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080058 }
59
60 /**
61 * stopSync() requests sync manager to stop sync. remove any SYNC_MESSAGE in
62 * the queue to break the sync loop
63 */
64 public void stopSync() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080065 }
66
67 protected void onSyncInit() {
68 }
69
Mathew Inwood42afea22018-08-16 19:18:28 +010070 @UnsupportedAppUsage
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080071 abstract void syncFromRamToFlash();
72}