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

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: More 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,
iclelland 2016/01/22 19:20:42 Combine with next line?
jkarlin 2016/01/22 19:45:46 Thanks, git cl format doesn't handle mojom yet :)
40 int64 service_worker_registration_id) 40 int64 service_worker_registration_id)
41 => (BackgroundSyncError err, SyncRegistration? registration); 41 => (BackgroundSyncError err, SyncRegistration? registration);
42 GetRegistrations(BackgroundSyncPeriodicity periodicity, 42 GetRegistrations(
iclelland 2016/01/22 19:20:42 Ditto
jkarlin 2016/01/22 19:45:46 Done.
43 int64 service_worker_registration_id) 43 int64 service_worker_registration_id)
44 => (BackgroundSyncError err, array<SyncRegistration> registrations); 44 => (BackgroundSyncError err, array<SyncRegistration> registrations);
45 Unregister(int64 handle_id, int64 service_worker_registration_id) 45 Unregister(int64 handle_id, int64 service_worker_registration_id)
46 => (BackgroundSyncError err); 46 => (BackgroundSyncError err);
47 GetPermissionStatus(BackgroundSyncPeriodicity periodicity, 47 GetPermissionStatus(
iclelland 2016/01/22 19:20:42 Ditto
jkarlin 2016/01/22 19:45:46 Done.
48 int64 service_worker_registration_id) 48 int64 service_worker_registration_id)
49 => (BackgroundSyncError err, PermissionStatus status); 49 => (BackgroundSyncError err, PermissionStatus status);
50 DuplicateRegistrationHandle(int64 handle_id) 50 DuplicateRegistrationHandle(int64 handle_id)
51 => (BackgroundSyncError err, SyncRegistration? registration); 51 => (BackgroundSyncError err, SyncRegistration? registration);
52 ReleaseRegistration(int64 handle_id); 52 ReleaseRegistration(int64 handle_id);
53 NotifyWhenFinished(int64 handle_id) => (BackgroundSyncError err, BackgroundSyn cState final_status); 53 NotifyWhenFinished(int64 handle_id) => (BackgroundSyncError err, BackgroundSyn cState final_status);
54 }; 54 };
55 55
56 interface BackgroundSyncServiceClient { 56 interface BackgroundSyncServiceClient {
57 Sync(int64 handle_id, BackgroundSyncEventLastChance last_chance) 57 Sync(int64 handle_id, BackgroundSyncEventLastChance last_chance)
58 => (ServiceWorkerEventStatus status); 58 => (ServiceWorkerEventStatus status);
59 }; 59 };
60 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698