OLD | NEW |
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 Loading... |
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 |
OLD | NEW |