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

Side by Side Diff: third_party/WebKit/public/platform/modules/background_sync/background_sync.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
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.mojom; 5 module blink.mojom;
6 6
7 import "content/public/common/background_sync.mojom"; 7 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_ event_status.mojom";
8 import "content/public/common/service_worker_event_status.mojom"; 8
9 enum BackgroundSyncNetworkState {
10 ANY,
11 AVOID_CELLULAR,
12 ONLINE,
13 MAX=ONLINE
14 };
15
16 struct SyncRegistration {
17 int64 id = -1;
18 string tag = "";
19 BackgroundSyncNetworkState network_state = ONLINE;
20 };
9 21
10 enum BackgroundSyncError { 22 enum BackgroundSyncError {
11 NONE, 23 NONE,
12 STORAGE, 24 STORAGE,
13 NOT_FOUND, 25 NOT_FOUND,
14 NO_SERVICE_WORKER, 26 NO_SERVICE_WORKER,
15 NOT_ALLOWED, 27 NOT_ALLOWED,
16 PERMISSION_DENIED, 28 PERMISSION_DENIED,
17 MAX=PERMISSION_DENIED 29 MAX=PERMISSION_DENIED
18 }; 30 };
(...skipping 13 matching lines...) Expand all
32 Register(SyncRegistration options, int64 service_worker_registration_id) 44 Register(SyncRegistration options, int64 service_worker_registration_id)
33 => (BackgroundSyncError err, SyncRegistration options); 45 => (BackgroundSyncError err, SyncRegistration options);
34 GetRegistrations(int64 service_worker_registration_id) 46 GetRegistrations(int64 service_worker_registration_id)
35 => (BackgroundSyncError err, array<SyncRegistration> registrations); 47 => (BackgroundSyncError err, array<SyncRegistration> registrations);
36 }; 48 };
37 49
38 interface BackgroundSyncServiceClient { 50 interface BackgroundSyncServiceClient {
39 Sync(string tag, BackgroundSyncEventLastChance last_chance) 51 Sync(string tag, BackgroundSyncEventLastChance last_chance)
40 => (ServiceWorkerEventStatus status); 52 => (ServiceWorkerEventStatus status);
41 }; 53 };
42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698