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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void OnActivateEvent(int request_id); | 208 void OnActivateEvent(int request_id); |
209 void OnExtendableMessageEvent( | 209 void OnExtendableMessageEvent( |
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 int64_t persistent_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 void OnPushEvent(int request_id, const PushEventPayload& payload); | 221 void OnPushEvent(int request_id, const PushEventPayload& payload); |
222 void OnNotificationCloseEvent( | 222 void OnNotificationCloseEvent( |
223 int request_id, | 223 int request_id, |
224 int64_t persistent_notification_id, | 224 const std::string& notification_id, |
225 const PlatformNotificationData& notification_data); | 225 const PlatformNotificationData& notification_data); |
226 | 226 |
227 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); | 227 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); |
228 void OnDidGetClients( | 228 void OnDidGetClients( |
229 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 229 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
230 void OnOpenWindowResponse(int request_id, | 230 void OnOpenWindowResponse(int request_id, |
231 const ServiceWorkerClientInfo& client); | 231 const ServiceWorkerClientInfo& client); |
232 void OnOpenWindowError(int request_id, const std::string& message); | 232 void OnOpenWindowError(int request_id, const std::string& message); |
233 void OnFocusClientResponse(int request_id, | 233 void OnFocusClientResponse(int request_id, |
234 const ServiceWorkerClientInfo& client); | 234 const ServiceWorkerClientInfo& client); |
(...skipping 26 matching lines...) Expand all Loading... |
261 // Initialized on the worker thread in workerContextStarted and | 261 // Initialized on the worker thread in workerContextStarted and |
262 // destructed on the worker thread in willDestroyWorkerContext. | 262 // destructed on the worker thread in willDestroyWorkerContext. |
263 std::unique_ptr<WorkerContextData> context_; | 263 std::unique_ptr<WorkerContextData> context_; |
264 | 264 |
265 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 265 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
266 }; | 266 }; |
267 | 267 |
268 } // namespace content | 268 } // namespace content |
269 | 269 |
270 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 270 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |