| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const PlatformNotificationData& notification_data, | 278 const PlatformNotificationData& notification_data, |
| 279 DispatchNotificationCloseEventCallback callback) override; | 279 DispatchNotificationCloseEventCallback callback) override; |
| 280 void DispatchPushEvent(const PushEventPayload& payload, | 280 void DispatchPushEvent(const PushEventPayload& payload, |
| 281 DispatchPushEventCallback callback) override; | 281 DispatchPushEventCallback callback) override; |
| 282 void DispatchSyncEvent( | 282 void DispatchSyncEvent( |
| 283 const std::string& tag, | 283 const std::string& tag, |
| 284 blink::mojom::BackgroundSyncEventLastChance last_chance, | 284 blink::mojom::BackgroundSyncEventLastChance last_chance, |
| 285 DispatchSyncEventCallback callback) override; | 285 DispatchSyncEventCallback callback) override; |
| 286 void DispatchPaymentRequestEvent( | 286 void DispatchPaymentRequestEvent( |
| 287 int payment_request_id, | 287 int payment_request_id, |
| 288 payments::mojom::PaymentAppRequestPtr app_request, | 288 payments::mojom::PaymentRequestEventDataPtr event_data, |
| 289 payments::mojom::PaymentAppResponseCallbackPtr response_callback, | 289 payments::mojom::PaymentAppResponseCallbackPtr response_callback, |
| 290 DispatchPaymentRequestEventCallback callback) override; | 290 DispatchPaymentRequestEventCallback callback) override; |
| 291 void Ping(PingCallback callback) override; | 291 void Ping(PingCallback callback) override; |
| 292 | 292 |
| 293 void OnNotificationClickEvent( | 293 void OnNotificationClickEvent( |
| 294 int request_id, | 294 int request_id, |
| 295 const std::string& notification_id, | 295 const std::string& notification_id, |
| 296 const PlatformNotificationData& notification_data, | 296 const PlatformNotificationData& notification_data, |
| 297 int action_index, | 297 int action_index, |
| 298 const base::NullableString16& reply); | 298 const base::NullableString16& reply); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // Initialized on the worker thread in workerContextStarted and | 366 // Initialized on the worker thread in workerContextStarted and |
| 367 // destructed on the worker thread in willDestroyWorkerContext. | 367 // destructed on the worker thread in willDestroyWorkerContext. |
| 368 std::unique_ptr<WorkerContextData> context_; | 368 std::unique_ptr<WorkerContextData> context_; |
| 369 | 369 |
| 370 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 370 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 371 }; | 371 }; |
| 372 | 372 |
| 373 } // namespace content | 373 } // namespace content |
| 374 | 374 |
| 375 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 375 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |