#include "content/browser/background_sync/background_sync_proxy.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/task_traits.h"
#include "content/browser/background_sync/background_sync_scheduler.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/background_sync_context.h"
#include "content/public/browser/background_sync_controller.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
namespace content {
BackgroundSyncProxy::BackgroundSyncProxy(
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context)
: … { … }
BackgroundSyncProxy::~BackgroundSyncProxy() = default;
void BackgroundSyncProxy::ScheduleDelayedProcessing(
blink::mojom::BackgroundSyncType sync_type,
base::TimeDelta delay,
base::OnceClosure delayed_task) { … }
void BackgroundSyncProxy::CancelDelayedProcessing(
blink::mojom::BackgroundSyncType sync_type) { … }
void BackgroundSyncProxy::SendSuspendedPeriodicSyncOrigins(
std::set<url::Origin> suspended_origins) { … }
void BackgroundSyncProxy::SendRegisteredPeriodicSyncOrigins(
std::set<url::Origin> registered_origins) { … }
void BackgroundSyncProxy::AddToTrackedOrigins(url::Origin origin) { … }
void BackgroundSyncProxy::RemoveFromTrackedOrigins(url::Origin origin) { … }
BrowserContext* BackgroundSyncProxy::browser_context() { … }
}