#include "content/browser/background_sync/one_shot_background_sync_service_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.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"
namespace content {
OneShotBackgroundSyncServiceImpl::OneShotBackgroundSyncServiceImpl(
BackgroundSyncContextImpl* background_sync_context,
const url::Origin& origin,
RenderProcessHost* render_process_host,
mojo::PendingReceiver<blink::mojom::OneShotBackgroundSyncService> receiver)
: … { … }
OneShotBackgroundSyncServiceImpl::~OneShotBackgroundSyncServiceImpl() { … }
void OneShotBackgroundSyncServiceImpl::OnMojoDisconnect() { … }
void OneShotBackgroundSyncServiceImpl::Register(
blink::mojom::SyncRegistrationOptionsPtr options,
int64_t sw_registration_id,
RegisterCallback callback) { … }
void OneShotBackgroundSyncServiceImpl::DidResolveRegistration(
blink::mojom::BackgroundSyncRegistrationInfoPtr registration_info) { … }
void OneShotBackgroundSyncServiceImpl::GetRegistrations(
int64_t sw_registration_id,
GetRegistrationsCallback callback) { … }
}