| OLD | NEW |
| (Empty) |
| 1 // Copyright 2010 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. | |
| 4 | |
| 5 package org.chromium.sync; | |
| 6 | |
| 7 | |
| 8 import android.accounts.Account; | |
| 9 import android.content.SyncStatusObserver; | |
| 10 import android.os.Bundle; | |
| 11 | |
| 12 /** | |
| 13 * Since the ContentResolver in Android has a lot of static methods, it is hard
to | |
| 14 * mock out for tests. This interface wraps all the sync-related methods we use
from | |
| 15 * the Android ContentResolver. | |
| 16 */ | |
| 17 public interface SyncContentResolverDelegate { | |
| 18 | |
| 19 Object addStatusChangeListener(int mask, SyncStatusObserver callback); | |
| 20 | |
| 21 void removeStatusChangeListener(Object handle); | |
| 22 | |
| 23 void setMasterSyncAutomatically(boolean sync); | |
| 24 | |
| 25 boolean getMasterSyncAutomatically(); | |
| 26 | |
| 27 void setSyncAutomatically(Account account, String authority, boolean sync); | |
| 28 | |
| 29 boolean getSyncAutomatically(Account account, String authority); | |
| 30 | |
| 31 void setIsSyncable(Account account, String authority, int syncable); | |
| 32 | |
| 33 int getIsSyncable(Account account, String authority); | |
| 34 | |
| 35 void removePeriodicSync(Account account, String authority, Bundle extras); | |
| 36 } | |
| OLD | NEW |