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

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

Issue 1960843002: [OnionSoup] Move background_sync.mojom from //content to //third_party/WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address dcheng@'s comment Created 4 years, 7 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
« no previous file with comments | « content/common/DEPS ('k') | content/common/service_worker/service_worker_type_converters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 module content.mojom;
6
7 import "content/public/common/background_sync.mojom";
8 import "content/public/common/service_worker_event_status.mojom";
9
10 enum BackgroundSyncError {
11 NONE,
12 STORAGE,
13 NOT_FOUND,
14 NO_SERVICE_WORKER,
15 NOT_ALLOWED,
16 PERMISSION_DENIED,
17 MAX=PERMISSION_DENIED
18 };
19
20 enum BackgroundSyncState {
21 PENDING,
22 FIRING,
23 REREGISTERED_WHILE_FIRING,
24 };
25
26 enum BackgroundSyncEventLastChance {
27 IS_NOT_LAST_CHANCE,
28 IS_LAST_CHANCE
29 };
30
31 interface BackgroundSyncService {
32 Register(SyncRegistration options, int64 service_worker_registration_id)
33 => (BackgroundSyncError err, SyncRegistration options);
34 GetRegistrations(int64 service_worker_registration_id)
35 => (BackgroundSyncError err, array<SyncRegistration> registrations);
36 };
37
38 interface BackgroundSyncServiceClient {
39 Sync(string tag, BackgroundSyncEventLastChance last_chance)
40 => (ServiceWorkerEventStatus status);
41 };
42
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/common/service_worker/service_worker_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698