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

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

Issue 2034663002: ServiceWorker: Keep the worker alive until FetchEvent.waitUntil settles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result) 80 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent(int eventID, Web ServiceWorkerEventResult result)
81 { 81 {
82 m_client.didHandleActivateEvent(eventID, result); 82 m_client.didHandleActivateEvent(eventID, result);
83 } 83 }
84 84
85 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(int eve ntID, WebServiceWorkerEventResult result) 85 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent(int eve ntID, WebServiceWorkerEventResult result)
86 { 86 {
87 m_client.didHandleExtendableMessageEvent(eventID, result); 87 m_client.didHandleExtendableMessageEvent(eventID, result);
88 } 88 }
89 89
90 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID) 90 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID)
91 { 91 {
92 m_client.didHandleFetchEvent(fetchEventID); 92 m_client.respondToFetchEvent(responseID);
93 } 93 }
94 94
95 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, c onst WebServiceWorkerResponse& webResponse) 95 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(int responseID, con st WebServiceWorkerResponse& response)
96 { 96 {
97 m_client.didHandleFetchEvent(fetchEventID, webResponse); 97 m_client.respondToFetchEvent(responseID, response);
98 }
99
100 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int eventFinishID, WebServiceWorkerEventResult result)
101 {
102 m_client.didHandleFetchEvent(eventFinishID, result);
98 } 103 }
99 104
100 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI D, WebServiceWorkerEventResult result) 105 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(int installEventI D, WebServiceWorkerEventResult result)
101 { 106 {
102 m_client.didHandleInstallEvent(installEventID, result); 107 m_client.didHandleInstallEvent(installEventID, result);
103 } 108 }
104 109
105 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent(int eve ntID, WebServiceWorkerEventResult result) 110 void ServiceWorkerGlobalScopeClientImpl::didHandleNotificationClickEvent(int eve ntID, WebServiceWorkerEventResult result)
106 { 111 {
107 m_client.didHandleNotificationClickEvent(eventID, result); 112 m_client.didHandleNotificationClickEvent(eventID, result);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 { 161 {
157 m_client.registerForeignFetchScopes(subScopes, origins); 162 m_client.registerForeignFetchScopes(subScopes, origins);
158 } 163 }
159 164
160 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client) 165 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client)
161 : m_client(client) 166 : m_client(client)
162 { 167 {
163 } 168 }
164 169
165 } // namespace blink 170 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698