| Index: content/renderer/background_sync/background_sync_client_impl.h
|
| diff --git a/content/renderer/background_sync/background_sync_client_impl.h b/content/renderer/background_sync/background_sync_client_impl.h
|
| index 492b73228a3c9a9cb75701774588ca176fb2a917..9e4156caaa38bfffd46896f300626b57fa14cd0c 100644
|
| --- a/content/renderer/background_sync/background_sync_client_impl.h
|
| +++ b/content/renderer/background_sync/background_sync_client_impl.h
|
| @@ -17,19 +17,24 @@ class CONTENT_EXPORT BackgroundSyncClientImpl
|
| : public NON_EXPORTED_BASE(BackgroundSyncServiceClient) {
|
| public:
|
| static void Create(
|
| + int64_t service_worker_registration_id,
|
| mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
|
|
|
| ~BackgroundSyncClientImpl() override;
|
|
|
| private:
|
| using SyncCallback = mojo::Callback<void(ServiceWorkerEventStatus)>;
|
| - explicit BackgroundSyncClientImpl(
|
| + BackgroundSyncClientImpl(
|
| + int64_t service_worker_registration_id,
|
| mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
|
|
|
| // BackgroundSyncServiceClient methods:
|
| - void Sync(content::SyncRegistrationPtr registration,
|
| - const SyncCallback& callback) override;
|
| + void Sync(int64_t handle_id, const SyncCallback& callback) override;
|
| + void SyncDidGetRegistration(const SyncCallback& callback,
|
| + BackgroundSyncError error,
|
| + const SyncRegistrationPtr& registration);
|
|
|
| + int64_t service_worker_registration_id_;
|
| mojo::StrongBinding<BackgroundSyncServiceClient> binding_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
|
|
|