Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sync/android/java/src/org/chromium/sync/SyncContentResolverDelegate.java

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698