| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 int request_id, | 210 int request_id, |
| 211 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); | 211 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); |
| 212 void OnInstallEvent(int request_id); | 212 void OnInstallEvent(int request_id); |
| 213 void OnFetchEvent(int response_id, | 213 void OnFetchEvent(int response_id, |
| 214 int event_finish_id, | 214 int event_finish_id, |
| 215 const ServiceWorkerFetchRequest& request); | 215 const ServiceWorkerFetchRequest& request); |
| 216 void OnNotificationClickEvent( | 216 void OnNotificationClickEvent( |
| 217 int request_id, | 217 int request_id, |
| 218 const std::string& notification_id, | 218 const std::string& notification_id, |
| 219 const PlatformNotificationData& notification_data, | 219 const PlatformNotificationData& notification_data, |
| 220 int action_index); | 220 int action_index, |
| 221 const base::string16& reply); |
| 221 void OnPushEvent(int request_id, const PushEventPayload& payload); | 222 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 222 void OnNotificationCloseEvent( | 223 void OnNotificationCloseEvent( |
| 223 int request_id, | 224 int request_id, |
| 224 const std::string& notification_id, | 225 const std::string& notification_id, |
| 225 const PlatformNotificationData& notification_data); | 226 const PlatformNotificationData& notification_data); |
| 226 | 227 |
| 227 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); | 228 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); |
| 228 void OnDidGetClients( | 229 void OnDidGetClients( |
| 229 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 230 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
| 230 void OnOpenWindowResponse(int request_id, | 231 void OnOpenWindowResponse(int request_id, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 261 // Initialized on the worker thread in workerContextStarted and | 262 // Initialized on the worker thread in workerContextStarted and |
| 262 // destructed on the worker thread in willDestroyWorkerContext. | 263 // destructed on the worker thread in willDestroyWorkerContext. |
| 263 std::unique_ptr<WorkerContextData> context_; | 264 std::unique_ptr<WorkerContextData> context_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 } // namespace content | 269 } // namespace content |
| 269 | 270 |
| 270 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |