Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2454)

Unified Diff: content/renderer/background_sync/background_sync_client_impl.h

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « content/public/common/background_sync.mojom ('k') | content/renderer/background_sync/background_sync_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698