#include "content/browser/background_sync/periodic_background_sync_service_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "content/browser/background_sync/background_sync_context_impl.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/public/browser/browser_thread.h"
#include "url/origin.h"
namespace content {
PeriodicBackgroundSyncServiceImpl::PeriodicBackgroundSyncServiceImpl(
BackgroundSyncContextImpl* background_sync_context,
const url::Origin& origin,
RenderProcessHost* render_process_host,
mojo::PendingReceiver<blink::mojom::PeriodicBackgroundSyncService> receiver)
: … { … }
PeriodicBackgroundSyncServiceImpl::~PeriodicBackgroundSyncServiceImpl() { … }
void PeriodicBackgroundSyncServiceImpl::OnMojoDisconnect() { … }
void PeriodicBackgroundSyncServiceImpl::Register(
blink::mojom::SyncRegistrationOptionsPtr options,
int64_t sw_registration_id,
RegisterCallback callback) { … }
void PeriodicBackgroundSyncServiceImpl::Unregister(
int64_t sw_registration_id,
const std::string& tag,
UnregisterCallback callback) { … }
void PeriodicBackgroundSyncServiceImpl::GetRegistrations(
int64_t sw_registration_id,
GetRegistrationsCallback callback) { … }
void PeriodicBackgroundSyncServiceImpl::OnUnregisterResult(
UnregisterCallback callback,
BackgroundSyncStatus status) { … }
}