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

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

Issue 2678733002: [ServiceWorker] Mojofy ActivateEvent of Service Worker (Closed)
Patch Set: Created 3 years, 10 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // in the browser process. 202 // in the browser process.
203 int GetRoutingID() const { return embedded_worker_id_; } 203 int GetRoutingID() const { return embedded_worker_id_; }
204 204
205 void Send(IPC::Message* message); 205 void Send(IPC::Message* message);
206 void SendWorkerStarted(); 206 void SendWorkerStarted();
207 void SetRegistrationInServiceWorkerGlobalScope( 207 void SetRegistrationInServiceWorkerGlobalScope(
208 const ServiceWorkerRegistrationObjectInfo& info, 208 const ServiceWorkerRegistrationObjectInfo& info,
209 const ServiceWorkerVersionAttributes& attrs); 209 const ServiceWorkerVersionAttributes& attrs);
210 210
211 // mojom::ServiceWorkerEventDispatcher 211 // mojom::ServiceWorkerEventDispatcher
212 void DispatchActivateEvent(
213 const DispatchActivateEventCallback& callback) override;
212 void DispatchExtendableMessageEvent( 214 void DispatchExtendableMessageEvent(
213 mojom::ExtendableMessageEventPtr event, 215 mojom::ExtendableMessageEventPtr event,
214 const DispatchExtendableMessageEventCallback& callback) override; 216 const DispatchExtendableMessageEventCallback& callback) override;
215 void DispatchFetchEvent(int fetch_event_id, 217 void DispatchFetchEvent(int fetch_event_id,
216 const ServiceWorkerFetchRequest& request, 218 const ServiceWorkerFetchRequest& request,
217 mojom::FetchEventPreloadHandlePtr preload_handle, 219 mojom::FetchEventPreloadHandlePtr preload_handle,
218 const DispatchFetchEventCallback& callback) override; 220 const DispatchFetchEventCallback& callback) override;
219 void DispatchPushEvent(const PushEventPayload& payload, 221 void DispatchPushEvent(const PushEventPayload& payload,
220 const DispatchPushEventCallback& callback) override; 222 const DispatchPushEventCallback& callback) override;
221 void DispatchSyncEvent( 223 void DispatchSyncEvent(
222 const std::string& tag, 224 const std::string& tag,
223 blink::mojom::BackgroundSyncEventLastChance last_chance, 225 blink::mojom::BackgroundSyncEventLastChance last_chance,
224 const DispatchSyncEventCallback& callback) override; 226 const DispatchSyncEventCallback& callback) override;
225 void DispatchPaymentRequestEvent( 227 void DispatchPaymentRequestEvent(
226 payments::mojom::PaymentAppRequestPtr app_request, 228 payments::mojom::PaymentAppRequestPtr app_request,
227 const DispatchPaymentRequestEventCallback& callback) override; 229 const DispatchPaymentRequestEventCallback& callback) override;
228 230
229 void OnActivateEvent(int request_id);
230 void OnInstallEvent(int request_id); 231 void OnInstallEvent(int request_id);
231 void OnNotificationClickEvent( 232 void OnNotificationClickEvent(
232 int request_id, 233 int request_id,
233 const std::string& notification_id, 234 const std::string& notification_id,
234 const PlatformNotificationData& notification_data, 235 const PlatformNotificationData& notification_data,
235 int action_index, 236 int action_index,
236 const base::NullableString16& reply); 237 const base::NullableString16& reply);
237 void OnNotificationCloseEvent( 238 void OnNotificationCloseEvent(
238 int request_id, 239 int request_id,
239 const std::string& notification_id, 240 const std::string& notification_id,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Initialized on the worker thread in workerContextStarted and 297 // Initialized on the worker thread in workerContextStarted and
297 // destructed on the worker thread in willDestroyWorkerContext. 298 // destructed on the worker thread in willDestroyWorkerContext.
298 std::unique_ptr<WorkerContextData> context_; 299 std::unique_ptr<WorkerContextData> context_;
299 300
300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 301 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
301 }; 302 };
302 303
303 } // namespace content 304 } // namespace content
304 305
305 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 306 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698