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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void ServiceWorkerGlobalScopeClientImpl::clearCachedMetadata(const WebURL& url) 70 void ServiceWorkerGlobalScopeClientImpl::clearCachedMetadata(const WebURL& url)
71 { 71 {
72 m_client.clearCachedMetadata(url); 72 m_client.clearCachedMetadata(url);
73 } 73 }
74 74
75 WebURL ServiceWorkerGlobalScopeClientImpl::scope() const 75 WebURL ServiceWorkerGlobalScopeClientImpl::scope() const
76 { 76 {
77 return m_client.scope(); 77 return m_client.scope();
78 } 78 }
79 79
80 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result) 80 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result, double eventDispatchTime)
81 { 81 {
82 m_client.didHandleActivateEvent(eventID, result); 82 m_client.didHandleActivateEvent(eventID, result, eventDispatchTime);
83 } 83 }
84 84
85 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(int eve ntID, WebServiceWorkerEventResult result) 85 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(int eve ntID, WebServiceWorkerEventResult result, double eventDispatchTime)
86 { 86 {
87 m_client.didHandleExtendableMessageEvent(eventID, result); 87 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime) ;
88 } 88 }
89 89
90 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID) 90 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID, dou ble eventDispatchTime)
91 { 91 {
92 m_client.respondToFetchEvent(responseID); 92 m_client.respondToFetchEvent(responseID, eventDispatchTime);
93 } 93 }
94 94
95 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID, con st WebServiceWorkerResponse& response) 95 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID, con st WebServiceWorkerResponse& response, double eventDispatchTime)
96 { 96 {
97 m_client.respondToFetchEvent(responseID, response); 97 m_client.respondToFetchEvent(responseID, response, eventDispatchTime);
98 } 98 }
99 99
100 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int eventFinishID, WebServiceWorkerEventResult result) 100 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int eventFinishID, WebServiceWorkerEventResult result, double eventDispatchTime)
101 { 101 {
102 m_client.didHandleFetchEvent(eventFinishID, result); 102 m_client.didHandleFetchEvent(eventFinishID, result, eventDispatchTime);
103 } 103 }
104 104
105 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI D, WebServiceWorkerEventResult result) 105 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI D, WebServiceWorkerEventResult result, double eventDispatchTime)
106 { 106 {
107 m_client.didHandleInstallEvent(installEventID, result); 107 m_client.didHandleInstallEvent(installEventID, result, eventDispatchTime);
108 } 108 }
109 109
110 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent(int eve ntID, WebServiceWorkerEventResult result) 110 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent(int eve ntID, WebServiceWorkerEventResult result, double eventDispatchTime)
111 { 111 {
112 m_client.didHandleNotificationClickEvent(eventID, result); 112 m_client.didHandleNotificationClickEvent(eventID, result, eventDispatchTime) ;
113 } 113 }
114 114
115 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationCloseEvent(int eve ntID, WebServiceWorkerEventResult result) 115 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationCloseEvent(int eve ntID, WebServiceWorkerEventResult result, double eventDispatchTime)
116 { 116 {
117 m_client.didHandleNotificationCloseEvent(eventID, result); 117 m_client.didHandleNotificationCloseEvent(eventID, result, eventDispatchTime) ;
118 } 118 }
119 119
120 void ServiceWorkerGlobalScopeClientImpl::didHandlePushEvent(int pushEventID, Web ServiceWorkerEventResult result) 120 void ServiceWorkerGlobalScopeClientImpl::didHandlePushEvent(int pushEventID, Web ServiceWorkerEventResult result, double eventDispatchTime)
121 { 121 {
122 m_client.didHandlePushEvent(pushEventID, result); 122 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime);
123 } 123 }
124 124
125 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent(int syncEventID, Web ServiceWorkerEventResult result) 125 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent(int syncEventID, Web ServiceWorkerEventResult result, double eventDispatchTime)
126 { 126 {
127 m_client.didHandleSyncEvent(syncEventID, result); 127 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime);
128 } 128 }
129 129
130 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(const WebString& cl ientUUID, const WebString& message, std::unique_ptr<WebMessagePortChannelArray> webChannels) 130 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(const WebString& cl ientUUID, const WebString& message, std::unique_ptr<WebMessagePortChannelArray> webChannels)
131 { 131 {
132 m_client.postMessageToClient(clientUUID, message, webChannels.release()); 132 m_client.postMessageToClient(clientUUID, message, webChannels.release());
133 } 133 }
134 134
135 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient(const We bCrossOriginServiceWorkerClient& client, const WebString& message, std::unique_p tr<WebMessagePortChannelArray> webChannels) 135 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient(const We bCrossOriginServiceWorkerClient& client, const WebString& message, std::unique_p tr<WebMessagePortChannelArray> webChannels)
136 { 136 {
137 m_client.postMessageToCrossOriginClient(client, message, webChannels.release ()); 137 m_client.postMessageToCrossOriginClient(client, message, webChannels.release ());
(...skipping 23 matching lines...) Expand all
161 { 161 {
162 m_client.registerForeignFetchScopes(subScopes, origins); 162 m_client.registerForeignFetchScopes(subScopes, origins);
163 } 163 }
164 164
165 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client) 165 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client)
166 : m_client(client) 166 : m_client(client)
167 { 167 {
168 } 168 }
169 169
170 } // namespace blink 170 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698