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

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

Issue 2416863002: Use fetch_event_id (fetchEventID in blink) for FetchEvent (Closed)
Patch Set: Created 4 years, 2 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent( 88 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(
89 int eventID, 89 int eventID,
90 WebServiceWorkerEventResult result, 90 WebServiceWorkerEventResult result,
91 double eventDispatchTime) { 91 double eventDispatchTime) {
92 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime); 92 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime);
93 } 93 }
94 94
95 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent( 95 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
96 int responseID, 96 int fetchEventID,
97 double eventDispatchTime) { 97 double eventDispatchTime) {
98 m_client.respondToFetchEvent(responseID, eventDispatchTime); 98 m_client.respondToFetchEvent(fetchEventID, eventDispatchTime);
99 } 99 }
100 100
101 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent( 101 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
102 int responseID, 102 int fetchEventID,
103 const WebServiceWorkerResponse& response, 103 const WebServiceWorkerResponse& response,
104 double eventDispatchTime) { 104 double eventDispatchTime) {
105 m_client.respondToFetchEvent(responseID, response, eventDispatchTime); 105 m_client.respondToFetchEvent(fetchEventID, response, eventDispatchTime);
106 } 106 }
107 107
108 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent( 108 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(
109 int eventFinishID, 109 int fetchEventID,
110 WebServiceWorkerEventResult result, 110 WebServiceWorkerEventResult result,
111 double eventDispatchTime) { 111 double eventDispatchTime) {
112 m_client.didHandleFetchEvent(eventFinishID, result, eventDispatchTime); 112 m_client.didHandleFetchEvent(fetchEventID, result, eventDispatchTime);
113 } 113 }
114 114
115 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent( 115 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(
116 int installEventID, 116 int installEventID,
117 WebServiceWorkerEventResult result, 117 WebServiceWorkerEventResult result,
118 double eventDispatchTime) { 118 double eventDispatchTime) {
119 m_client.didHandleInstallEvent(installEventID, result, eventDispatchTime); 119 m_client.didHandleInstallEvent(installEventID, result, eventDispatchTime);
120 } 120 }
121 121
122 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent( 122 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 const WebVector<WebURL>& subScopes, 189 const WebVector<WebURL>& subScopes,
190 const WebVector<WebSecurityOrigin>& origins) { 190 const WebVector<WebSecurityOrigin>& origins) {
191 m_client.registerForeignFetchScopes(subScopes, origins); 191 m_client.registerForeignFetchScopes(subScopes, origins);
192 } 192 }
193 193
194 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 194 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
195 WebServiceWorkerContextClient& client) 195 WebServiceWorkerContextClient& client)
196 : m_client(client) {} 196 : m_client(client) {}
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698