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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 130 blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
131 createDevToolsMessageLoop() override; 131 createDevToolsMessageLoop() override;
132 void didHandleActivateEvent(int request_id, 132 void didHandleActivateEvent(int request_id,
133 blink::WebServiceWorkerEventResult) override; 133 blink::WebServiceWorkerEventResult) override;
134 void didHandleExtendableMessageEvent( 134 void didHandleExtendableMessageEvent(
135 int request_id, 135 int request_id,
136 blink::WebServiceWorkerEventResult result) override; 136 blink::WebServiceWorkerEventResult result) override;
137 void didHandleInstallEvent( 137 void didHandleInstallEvent(
138 int request_id, 138 int request_id,
139 blink::WebServiceWorkerEventResult result) override; 139 blink::WebServiceWorkerEventResult result) override;
140 void didHandleFetchEvent(int request_id) override; 140 void respondToFetchEvent(int response_id) override;
141 void didHandleFetchEvent( 141 void respondToFetchEvent(
142 int request_id, 142 int response_id,
143 const blink::WebServiceWorkerResponse& response) override; 143 const blink::WebServiceWorkerResponse& response) override;
144 void didHandleFetchEvent(int event_finish_id,
145 blink::WebServiceWorkerEventResult result) override;
144 void didHandleNotificationClickEvent( 146 void didHandleNotificationClickEvent(
145 int request_id, 147 int request_id,
146 blink::WebServiceWorkerEventResult result) override; 148 blink::WebServiceWorkerEventResult result) override;
147 void didHandleNotificationCloseEvent( 149 void didHandleNotificationCloseEvent(
148 int request_id, 150 int request_id,
149 blink::WebServiceWorkerEventResult result) override; 151 blink::WebServiceWorkerEventResult result) override;
150 void didHandlePushEvent(int request_id, 152 void didHandlePushEvent(int request_id,
151 blink::WebServiceWorkerEventResult result) override; 153 blink::WebServiceWorkerEventResult result) override;
152 void didHandleSyncEvent(int request_id, 154 void didHandleSyncEvent(int request_id,
153 blink::WebServiceWorkerEventResult result) override; 155 blink::WebServiceWorkerEventResult result) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void SendWorkerStarted(); 195 void SendWorkerStarted();
194 void SetRegistrationInServiceWorkerGlobalScope( 196 void SetRegistrationInServiceWorkerGlobalScope(
195 const ServiceWorkerRegistrationObjectInfo& info, 197 const ServiceWorkerRegistrationObjectInfo& info,
196 const ServiceWorkerVersionAttributes& attrs); 198 const ServiceWorkerVersionAttributes& attrs);
197 199
198 void OnActivateEvent(int request_id); 200 void OnActivateEvent(int request_id);
199 void OnExtendableMessageEvent( 201 void OnExtendableMessageEvent(
200 int request_id, 202 int request_id,
201 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); 203 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params);
202 void OnInstallEvent(int request_id); 204 void OnInstallEvent(int request_id);
203 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); 205 void OnFetchEvent(int response_id,
206 int event_finish_id,
207 const ServiceWorkerFetchRequest& request);
204 void OnNotificationClickEvent( 208 void OnNotificationClickEvent(
205 int request_id, 209 int request_id,
206 int64_t persistent_notification_id, 210 int64_t persistent_notification_id,
207 const PlatformNotificationData& notification_data, 211 const PlatformNotificationData& notification_data,
208 int action_index); 212 int action_index);
209 void OnPushEvent(int request_id, const PushEventPayload& payload); 213 void OnPushEvent(int request_id, const PushEventPayload& payload);
210 void OnNotificationCloseEvent( 214 void OnNotificationCloseEvent(
211 int request_id, 215 int request_id,
212 int64_t persistent_notification_id, 216 int64_t persistent_notification_id,
213 const PlatformNotificationData& notification_data); 217 const PlatformNotificationData& notification_data);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Initialized on the worker thread in workerContextStarted and 253 // Initialized on the worker thread in workerContextStarted and
250 // destructed on the worker thread in willDestroyWorkerContext. 254 // destructed on the worker thread in willDestroyWorkerContext.
251 std::unique_ptr<WorkerContextData> context_; 255 std::unique_ptr<WorkerContextData> context_;
252 256
253 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 257 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
254 }; 258 };
255 259
256 } // namespace content 260 } // namespace content
257 261
258 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 262 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698