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

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

Issue 1614063002: [BackgroundSync Cleanup] Remove periodic sync code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_power
Patch Set: Address comments from PS3 Created 4 years, 11 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/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
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
OLDNEW
« no previous file with comments | « content/child/background_sync/background_sync_type_converters_unittest.cc ('k') | content/public/common/background_sync.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698