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