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

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

Issue 2274283003: Use mojo.common.mojom.Time for dispatch_event_time in background_sync.mojom (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/public/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
7 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_ event_status.mojom"; 8 import "third_party/WebKit/public/platform/modules/serviceworker/service_worker_ event_status.mojom";
8 9
9 enum BackgroundSyncNetworkState { 10 enum BackgroundSyncNetworkState {
10 ANY, 11 ANY,
11 AVOID_CELLULAR, 12 AVOID_CELLULAR,
12 ONLINE, 13 ONLINE,
13 MAX=ONLINE 14 MAX=ONLINE
14 }; 15 };
15 16
16 struct SyncRegistration { 17 struct SyncRegistration {
(...skipping 24 matching lines...) Expand all
41 }; 42 };
42 43
43 interface BackgroundSyncService { 44 interface BackgroundSyncService {
44 Register(SyncRegistration options, int64 service_worker_registration_id) 45 Register(SyncRegistration options, int64 service_worker_registration_id)
45 => (BackgroundSyncError err, SyncRegistration options); 46 => (BackgroundSyncError err, SyncRegistration options);
46 GetRegistrations(int64 service_worker_registration_id) 47 GetRegistrations(int64 service_worker_registration_id)
47 => (BackgroundSyncError err, array<SyncRegistration> registrations); 48 => (BackgroundSyncError err, array<SyncRegistration> registrations);
48 }; 49 };
49 50
50 interface BackgroundSyncServiceClient { 51 interface BackgroundSyncServiceClient {
51 // TODO(horo): Use mojo.common.mojom.Time for |dispatch_event_time|. It is
52 // using double as the UTC time in seconds, counted from January 1, 1970.
53 Sync(string tag, BackgroundSyncEventLastChance last_chance) 52 Sync(string tag, BackgroundSyncEventLastChance last_chance)
54 => (ServiceWorkerEventStatus status, double dispatch_event_time); 53 => (ServiceWorkerEventStatus status,
54 mojo.common.mojom.Time dispatch_event_time);
55 }; 55 };
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698