gecko-dev/mobile/android/base/db/TabsAccessor.java
Ahmed Khalil 93bf3a90af Bug 1159020 - Move share overlay's access to sync to TabsProvider, r=nalexander
This includes a JUnit 3 test (not yet run in automation) to test this
functionality.

--HG--
extra : commitid : HXal0V7FwDo
extra : rebase_source : 2c91d276f431bbe9edd833177d7ec04d2d497f89
2015-05-28 14:39:16 -07:00

29 lines
1.2 KiB
Java

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.gecko.db;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import org.mozilla.gecko.Tab;
import java.util.List;
public interface TabsAccessor {
public interface OnQueryTabsCompleteListener {
public void onQueryTabsComplete(List<RemoteClient> clients);
}
public Cursor getRemoteClientsByRecencyCursor(Context context);
public Cursor getRemoteTabsCursor(Context context);
public Cursor getRemoteTabsCursor(Context context, int limit);
public List<RemoteClient> getClientsWithoutTabsByRecencyFromCursor(final Cursor cursor);
public List<RemoteClient> getClientsFromCursor(final Cursor cursor);
public void getTabs(final Context context, final OnQueryTabsCompleteListener listener);
public void getTabs(final Context context, final int limit, final OnQueryTabsCompleteListener listener);
public void persistLocalTabs(final ContentResolver cr, final Iterable<Tab> tabs);
}