| OLD | NEW |
| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 const ServiceWorkerVersionAttributes& attrs); | 212 const ServiceWorkerVersionAttributes& attrs); |
| 213 | 213 |
| 214 // mojom::ServiceWorkerEventDispatcher | 214 // mojom::ServiceWorkerEventDispatcher |
| 215 void DispatchExtendableMessageEvent( | 215 void DispatchExtendableMessageEvent( |
| 216 mojom::ExtendableMessageEventPtr event, | 216 mojom::ExtendableMessageEventPtr event, |
| 217 const DispatchExtendableMessageEventCallback& callback) override; | 217 const DispatchExtendableMessageEventCallback& callback) override; |
| 218 void DispatchFetchEvent(int fetch_event_id, | 218 void DispatchFetchEvent(int fetch_event_id, |
| 219 const ServiceWorkerFetchRequest& request, | 219 const ServiceWorkerFetchRequest& request, |
| 220 mojom::FetchEventPreloadHandlePtr preload_handle, | 220 mojom::FetchEventPreloadHandlePtr preload_handle, |
| 221 const DispatchFetchEventCallback& callback) override; | 221 const DispatchFetchEventCallback& callback) override; |
| 222 void DispatchNotificationClickEvent( |
| 223 const std::string& notification_id, |
| 224 const PlatformNotificationData& notification_data, |
| 225 int action_index, |
| 226 const base::Optional<base::string16>& reply, |
| 227 const DispatchNotificationClickEventCallback& callback) override; |
| 228 void DispatchNotificationCloseEvent( |
| 229 const std::string& notification_id, |
| 230 const PlatformNotificationData& notification_data, |
| 231 const DispatchNotificationCloseEventCallback& callback) override; |
| 222 void DispatchPushEvent(const PushEventPayload& payload, | 232 void DispatchPushEvent(const PushEventPayload& payload, |
| 223 const DispatchPushEventCallback& callback) override; | 233 const DispatchPushEventCallback& callback) override; |
| 224 void DispatchSyncEvent( | 234 void DispatchSyncEvent( |
| 225 const std::string& tag, | 235 const std::string& tag, |
| 226 blink::mojom::BackgroundSyncEventLastChance last_chance, | 236 blink::mojom::BackgroundSyncEventLastChance last_chance, |
| 227 const DispatchSyncEventCallback& callback) override; | 237 const DispatchSyncEventCallback& callback) override; |
| 228 void DispatchPaymentRequestEvent( | 238 void DispatchPaymentRequestEvent( |
| 229 payments::mojom::PaymentAppRequestPtr app_request, | 239 payments::mojom::PaymentAppRequestPtr app_request, |
| 230 const DispatchPaymentRequestEventCallback& callback) override; | 240 const DispatchPaymentRequestEventCallback& callback) override; |
| 231 | 241 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // Initialized on the worker thread in workerContextStarted and | 309 // Initialized on the worker thread in workerContextStarted and |
| 300 // destructed on the worker thread in willDestroyWorkerContext. | 310 // destructed on the worker thread in willDestroyWorkerContext. |
| 301 std::unique_ptr<WorkerContextData> context_; | 311 std::unique_ptr<WorkerContextData> context_; |
| 302 | 312 |
| 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 313 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 304 }; | 314 }; |
| 305 | 315 |
| 306 } // namespace content | 316 } // namespace content |
| 307 | 317 |
| 308 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 318 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |