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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 2218943002: Introduce ServiceWorker.EventDispatchingDelay UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated mpearson@'s comment Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
index cd9d82b441ec1aba3994115dfe13bb97621a3a43..2685281f2dd14487515c3f254968615e423bacab 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
@@ -69,18 +69,18 @@ public:
virtual WebURL scope() const = 0;
- virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult) = 0;
- virtual void didHandleExtendableMessageEvent(int eventID, WebServiceWorkerEventResult) = 0;
+ virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandleExtendableMessageEvent(int eventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
// Calling respondToFetchEvent without response means no response was
// provided by the service worker in the fetch events, so fallback to native.
- virtual void respondToFetchEvent(int responseID) = 0;
- virtual void respondToFetchEvent(int responseID, const WebServiceWorkerResponse&) = 0;
- virtual void didHandleFetchEvent(int eventFinishID, WebServiceWorkerEventResult) = 0;
- virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEventResult) = 0;
- virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEventResult) = 0;
- virtual void didHandleNotificationCloseEvent(int eventID, WebServiceWorkerEventResult) = 0;
- virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult) = 0;
- virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult) = 0;
+ virtual void respondToFetchEvent(int responseID, double eventDispatchTime) = 0;
+ virtual void respondToFetchEvent(int responseID, const WebServiceWorkerResponse&, double eventDispatchTime) = 0;
+ virtual void didHandleFetchEvent(int eventFinishID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandleNotificationCloseEvent(int eventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
+ virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult, double eventDispatchTime) = 0;
virtual void postMessageToClient(const WebString& clientUUID, const WebString& message, std::unique_ptr<WebMessagePortChannelArray>) = 0;
virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorkerClient&, const WebString& message, std::unique_ptr<WebMessagePortChannelArray>) = 0;
virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) = 0;

Powered by Google App Engine
This is Rietveld 408576698