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

Side by Side Diff: content/common/background_sync_service.mojom

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS7 Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module content; 5 module content;
6 6
7 import "content/public/common/background_sync.mojom"; 7 import "content/public/common/background_sync.mojom";
8 import "content/public/common/service_worker_event_status.mojom"; 8 import "content/public/common/service_worker_event_status.mojom";
9 9
10 enum BackgroundSyncError { 10 enum BackgroundSyncError {
(...skipping 15 matching lines...) Expand all
26 IS_NOT_LAST_CHANCE, 26 IS_NOT_LAST_CHANCE,
27 IS_LAST_CHANCE 27 IS_LAST_CHANCE
28 }; 28 };
29 29
30 interface BackgroundSyncService { 30 interface BackgroundSyncService {
31 Register(SyncRegistration options, int64 service_worker_registration_id, 31 Register(SyncRegistration options, int64 service_worker_registration_id,
32 bool requested_from_service_worker) 32 bool requested_from_service_worker)
33 => (BackgroundSyncError err, SyncRegistration options); 33 => (BackgroundSyncError err, SyncRegistration options);
34 GetRegistrations(int64 service_worker_registration_id) 34 GetRegistrations(int64 service_worker_registration_id)
35 => (BackgroundSyncError err, array<SyncRegistration> registrations); 35 => (BackgroundSyncError err, array<SyncRegistration> registrations);
36 DuplicateRegistrationHandle(int64 handle_id)
37 => (BackgroundSyncError err, SyncRegistration? registration);
38 ReleaseRegistration(int64 handle_id);
39 }; 36 };
40 37
41 interface BackgroundSyncServiceClient { 38 interface BackgroundSyncServiceClient {
42 Sync(int64 handle_id, BackgroundSyncEventLastChance last_chance) 39 Sync(string tag, BackgroundSyncEventLastChance last_chance)
43 => (ServiceWorkerEventStatus status); 40 => (ServiceWorkerEventStatus status);
44 }; 41 };
45 42
OLDNEW
« no previous file with comments | « content/child/background_sync/background_sync_type_converters_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698