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