| 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 blink.mojom; | 5 module blink.mojom; |
| 6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/common_custom_types.mojom"; |
| 8 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_
event_status.mojom"; | |
| 9 | 8 |
| 10 enum BackgroundSyncNetworkState { | 9 enum BackgroundSyncNetworkState { |
| 11 ANY, | 10 ANY, |
| 12 AVOID_CELLULAR, | 11 AVOID_CELLULAR, |
| 13 ONLINE, | 12 ONLINE, |
| 14 MAX=ONLINE | 13 MAX=ONLINE |
| 15 }; | 14 }; |
| 16 | 15 |
| 17 struct SyncRegistration { | 16 struct SyncRegistration { |
| 18 int64 id = -1; | 17 int64 id = -1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 40 IS_NOT_LAST_CHANCE, | 39 IS_NOT_LAST_CHANCE, |
| 41 IS_LAST_CHANCE | 40 IS_LAST_CHANCE |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 interface BackgroundSyncService { | 43 interface BackgroundSyncService { |
| 45 Register(SyncRegistration options, int64 service_worker_registration_id) | 44 Register(SyncRegistration options, int64 service_worker_registration_id) |
| 46 => (BackgroundSyncError err, SyncRegistration options); | 45 => (BackgroundSyncError err, SyncRegistration options); |
| 47 GetRegistrations(int64 service_worker_registration_id) | 46 GetRegistrations(int64 service_worker_registration_id) |
| 48 => (BackgroundSyncError err, array<SyncRegistration> registrations); | 47 => (BackgroundSyncError err, array<SyncRegistration> registrations); |
| 49 }; | 48 }; |
| 50 | |
| 51 interface BackgroundSyncServiceClient { | |
| 52 Sync(string tag, BackgroundSyncEventLastChance last_chance) | |
| 53 => (ServiceWorkerEventStatus status, | |
| 54 mojo.common.mojom.Time dispatch_event_time); | |
| 55 }; | |
| OLD | NEW |