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

Side by Side Diff: third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom

Issue 2555853003: Break up common_custom_types.mojom. (Closed)
Patch Set: Created 4 years 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 blink.mojom; 5 module blink.mojom;
6 6
7 import "mojo/common/common_custom_types.mojom";
8
9 enum BackgroundSyncNetworkState { 7 enum BackgroundSyncNetworkState {
10 ANY, 8 ANY,
11 AVOID_CELLULAR, 9 AVOID_CELLULAR,
12 ONLINE, 10 ONLINE,
13 MAX=ONLINE 11 MAX=ONLINE
14 }; 12 };
15 13
16 struct SyncRegistration { 14 struct SyncRegistration {
17 int64 id = -1; 15 int64 id = -1;
18 string tag = ""; 16 string tag = "";
(...skipping 20 matching lines...) Expand all
39 IS_NOT_LAST_CHANCE, 37 IS_NOT_LAST_CHANCE,
40 IS_LAST_CHANCE 38 IS_LAST_CHANCE
41 }; 39 };
42 40
43 interface BackgroundSyncService { 41 interface BackgroundSyncService {
44 Register(SyncRegistration options, int64 service_worker_registration_id) 42 Register(SyncRegistration options, int64 service_worker_registration_id)
45 => (BackgroundSyncError err, SyncRegistration options); 43 => (BackgroundSyncError err, SyncRegistration options);
46 GetRegistrations(int64 service_worker_registration_id) 44 GetRegistrations(int64 service_worker_registration_id)
47 => (BackgroundSyncError err, array<SyncRegistration> registrations); 45 => (BackgroundSyncError err, array<SyncRegistration> registrations);
48 }; 46 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698