Update V8 to version 4.7.42.
[chromium-blink-merge.git] / content / common / background_sync_service.mojom
blob7003a59fa0e1845a938e20eb3e687ff199d81b66
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
3 // found in the LICENSE file.
5 module content;
7 import "content/public/common/background_sync.mojom";
8 import "content/public/common/permission_status.mojom";
9 import "content/public/common/service_worker_event_status.mojom";
11 enum BackgroundSyncError {
12   NONE,
13   STORAGE,
14   NOT_FOUND,
15   NO_SERVICE_WORKER,
16   NOT_ALLOWED,
17   MAX=NOT_ALLOWED
20 interface BackgroundSyncService {
21   Register(SyncRegistration options, int64 service_worker_registration_id,
22            bool requested_from_service_worker)
23       => (BackgroundSyncError err, SyncRegistration options);
24   GetRegistration(BackgroundSyncPeriodicity periodicity, string tag,
25                   int64 service_worker_registration_id)
26       => (BackgroundSyncError err, SyncRegistration? registration);
27   GetRegistrations(BackgroundSyncPeriodicity periodicity,
28                    int64 service_worker_registration_id)
29       => (BackgroundSyncError err, array<SyncRegistration> registrations);
30   Unregister(BackgroundSyncPeriodicity periodicity, int64 id, string tag,
31              int64 service_worker_registration_id) => (BackgroundSyncError err);
32   GetPermissionStatus(BackgroundSyncPeriodicity periodicity,
33                       int64 service_worker_registration_id)
34       => (BackgroundSyncError err, PermissionStatus status);
37 interface BackgroundSyncServiceClient {
38   Sync(SyncRegistration registration)
39       => (ServiceWorkerEventStatus status);