1 /*
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 
17 package android.webkit;
18 
19 import android.content.Context;
20 
21 /**
22  * @deprecated The WebSyncManager no longer does anything.
23  */
24 @Deprecated
25 abstract class WebSyncManager implements Runnable {
26     protected static final java.lang.String LOGTAG = "websync";
27     protected android.webkit.WebViewDatabase mDataBase;
28     protected android.os.Handler mHandler;
29 
WebSyncManager(Context context, String name)30     protected WebSyncManager(Context context, String name) {
31     }
32 
clone()33     protected Object clone() throws CloneNotSupportedException {
34         throw new CloneNotSupportedException("doesn't implement Cloneable");
35     }
36 
run()37     public void run() {
38     }
39 
40     /**
41      * sync() forces sync manager to sync now
42      */
sync()43     public void sync() {
44     }
45 
46     /**
47      * resetSync() resets sync manager's timer
48      */
resetSync()49     public void resetSync() {
50     }
51 
52     /**
53      * startSync() requests sync manager to start sync
54      */
startSync()55     public void startSync() {
56     }
57 
58     /**
59      * stopSync() requests sync manager to stop sync. remove any SYNC_MESSAGE in
60      * the queue to break the sync loop
61      */
stopSync()62     public void stopSync() {
63     }
64 
onSyncInit()65     protected void onSyncInit() {
66     }
67 
syncFromRamToFlash()68     abstract void syncFromRamToFlash();
69 }
70