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

Side by Side Diff: content/common/service_worker/service_worker_event_dispatcher.mojom

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 content.mojom;
6 6
7 import "components/payments/payment_app.mojom"; 7 import "components/payments/payment_app.mojom";
8 import "content/common/url_loader.mojom"; 8 import "content/common/url_loader.mojom";
9 import "mojo/common/string16.mojom"; 9 import "mojo/common/string16.mojom";
10 import "mojo/common/time.mojom"; 10 import "mojo/common/time.mojom";
(...skipping 23 matching lines...) Expand all
34 ExtendableMessageEventSource source; 34 ExtendableMessageEventSource source;
35 }; 35 };
36 36
37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching 37 // Renderer-side interface bound to ServiceWorkerContextClient for dispatching
38 // events. 38 // events.
39 interface ServiceWorkerEventDispatcher { 39 interface ServiceWorkerEventDispatcher {
40 // |fetch_event_id| is used internally when sending the response back to the 40 // |fetch_event_id| is used internally when sending the response back to the
41 // browser process. 41 // browser process.
42 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request, 42 DispatchFetchEvent(int32 fetch_event_id, ServiceWorkerFetchRequest request,
43 FetchEventPreloadHandle? preload_handle) 43 FetchEventPreloadHandle? preload_handle)
44 => (blink.mojom.ServiceWorkerEventStatus status, 44 => (mojo.common.mojom.TimeTicks dispatch_time_ticks,
45 blink.mojom.ServiceWorkerEventStatus status,
45 mojo.common.mojom.Time dispatch_event_time); 46 mojo.common.mojom.Time dispatch_event_time);
46 DispatchPushEvent(PushEventPayload payload) 47 DispatchPushEvent(PushEventPayload payload)
47 => (blink.mojom.ServiceWorkerEventStatus status, 48 => (blink.mojom.ServiceWorkerEventStatus status,
48 mojo.common.mojom.Time dispatch_event_time); 49 mojo.common.mojom.Time dispatch_event_time);
49 // Arguments are passed to the event handler as parameters of SyncEvent. 50 // Arguments are passed to the event handler as parameters of SyncEvent.
50 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event 51 // Ref: https://wicg.github.io/BackgroundSync/spec/#sync-event
51 DispatchSyncEvent(string tag, 52 DispatchSyncEvent(string tag,
52 blink.mojom.BackgroundSyncEventLastChance last_chance) 53 blink.mojom.BackgroundSyncEventLastChance last_chance)
53 => (blink.mojom.ServiceWorkerEventStatus status, 54 => (blink.mojom.ServiceWorkerEventStatus status,
54 mojo.common.mojom.Time dispatch_event_time); 55 mojo.common.mojom.Time dispatch_event_time);
55 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request) 56 DispatchPaymentRequestEvent(payments.mojom.PaymentAppRequest app_request)
56 => (blink.mojom.ServiceWorkerEventStatus status, 57 => (blink.mojom.ServiceWorkerEventStatus status,
57 mojo.common.mojom.Time dispatch_event_time); 58 mojo.common.mojom.Time dispatch_event_time);
58 DispatchExtendableMessageEvent(ExtendableMessageEvent event) 59 DispatchExtendableMessageEvent(ExtendableMessageEvent event)
59 => (blink.mojom.ServiceWorkerEventStatus status, 60 => (blink.mojom.ServiceWorkerEventStatus status,
60 mojo.common.mojom.Time dispatch_event_time); 61 mojo.common.mojom.Time dispatch_event_time);
61 }; 62 };
OLDNEW
« no previous file with comments | « content/common/resource_request.h ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698