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..f9a06bed9288261e2dfd42382037d66e9fa6d196 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(int 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); |