| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 int request_id, | 215 int request_id, |
| 216 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); | 216 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); |
| 217 void OnInstallEvent(int request_id); | 217 void OnInstallEvent(int request_id); |
| 218 void DispatchFetchEvent(int response_id, | 218 void DispatchFetchEvent(int response_id, |
| 219 const ServiceWorkerFetchRequest& request, | 219 const ServiceWorkerFetchRequest& request, |
| 220 const FetchCallback& callback); | 220 const FetchCallback& callback); |
| 221 void OnNotificationClickEvent( | 221 void OnNotificationClickEvent( |
| 222 int request_id, | 222 int request_id, |
| 223 const std::string& notification_id, | 223 const std::string& notification_id, |
| 224 const PlatformNotificationData& notification_data, | 224 const PlatformNotificationData& notification_data, |
| 225 int action_index); | 225 int action_index, |
| 226 const base::NullableString16& reply); |
| 226 void OnPushEvent(int request_id, const PushEventPayload& payload); | 227 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 227 void OnNotificationCloseEvent( | 228 void OnNotificationCloseEvent( |
| 228 int request_id, | 229 int request_id, |
| 229 const std::string& notification_id, | 230 const std::string& notification_id, |
| 230 const PlatformNotificationData& notification_data); | 231 const PlatformNotificationData& notification_data); |
| 231 | 232 |
| 232 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); | 233 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); |
| 233 void OnDidGetClients( | 234 void OnDidGetClients( |
| 234 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 235 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
| 235 void OnOpenWindowResponse(int request_id, | 236 void OnOpenWindowResponse(int request_id, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 266 // Initialized on the worker thread in workerContextStarted and | 267 // Initialized on the worker thread in workerContextStarted and |
| 267 // destructed on the worker thread in willDestroyWorkerContext. | 268 // destructed on the worker thread in willDestroyWorkerContext. |
| 268 std::unique_ptr<WorkerContextData> context_; | 269 std::unique_ptr<WorkerContextData> context_; |
| 269 | 270 |
| 270 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 271 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 } // namespace content | 274 } // namespace content |
| 274 | 275 |
| 275 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 276 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |