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/permission_status.mojom"; | 8 import "content/public/common/permission_status.mojom"; |
9 import "content/public/common/service_worker_event_status.mojom"; | 9 import "content/public/common/service_worker_event_status.mojom"; |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 enum BackgroundSyncEventLastChance { | 30 enum BackgroundSyncEventLastChance { |
31 IS_NOT_LAST_CHANCE, | 31 IS_NOT_LAST_CHANCE, |
32 IS_LAST_CHANCE | 32 IS_LAST_CHANCE |
33 }; | 33 }; |
34 | 34 |
35 interface BackgroundSyncService { | 35 interface BackgroundSyncService { |
36 Register(SyncRegistration options, int64 service_worker_registration_id, | 36 Register(SyncRegistration options, int64 service_worker_registration_id, |
37 bool requested_from_service_worker) | 37 bool requested_from_service_worker) |
38 => (BackgroundSyncError err, SyncRegistration options); | 38 => (BackgroundSyncError err, SyncRegistration options); |
39 GetRegistration(BackgroundSyncPeriodicity periodicity, string tag, | 39 GetRegistration(string tag, int64 service_worker_registration_id) |
40 int64 service_worker_registration_id) | |
41 => (BackgroundSyncError err, SyncRegistration? registration); | 40 => (BackgroundSyncError err, SyncRegistration? registration); |
42 GetRegistrations(BackgroundSyncPeriodicity periodicity, | 41 GetRegistrations(int64 service_worker_registration_id) |
43 int64 service_worker_registration_id) | |
44 => (BackgroundSyncError err, array<SyncRegistration> registrations); | 42 => (BackgroundSyncError err, array<SyncRegistration> registrations); |
45 Unregister(int64 handle_id, int64 service_worker_registration_id) | 43 Unregister(int64 handle_id, int64 service_worker_registration_id) |
46 => (BackgroundSyncError err); | 44 => (BackgroundSyncError err); |
47 GetPermissionStatus(BackgroundSyncPeriodicity periodicity, | 45 GetPermissionStatus(int64 service_worker_registration_id) |
48 int64 service_worker_registration_id) | |
49 => (BackgroundSyncError err, PermissionStatus status); | 46 => (BackgroundSyncError err, PermissionStatus status); |
50 DuplicateRegistrationHandle(int64 handle_id) | 47 DuplicateRegistrationHandle(int64 handle_id) |
51 => (BackgroundSyncError err, SyncRegistration? registration); | 48 => (BackgroundSyncError err, SyncRegistration? registration); |
52 ReleaseRegistration(int64 handle_id); | 49 ReleaseRegistration(int64 handle_id); |
53 NotifyWhenFinished(int64 handle_id) => (BackgroundSyncError err, BackgroundSyn
cState final_status); | 50 NotifyWhenFinished(int64 handle_id) => (BackgroundSyncError err, BackgroundSyn
cState final_status); |
54 }; | 51 }; |
55 | 52 |
56 interface BackgroundSyncServiceClient { | 53 interface BackgroundSyncServiceClient { |
57 Sync(int64 handle_id, BackgroundSyncEventLastChance last_chance) | 54 Sync(int64 handle_id, BackgroundSyncEventLastChance last_chance) |
58 => (ServiceWorkerEventStatus status); | 55 => (ServiceWorkerEventStatus status); |
59 }; | 56 }; |
60 | 57 |
OLD | NEW |