| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void SendWorkerStarted(); | 192 void SendWorkerStarted(); |
| 193 void SetRegistrationInServiceWorkerGlobalScope( | 193 void SetRegistrationInServiceWorkerGlobalScope( |
| 194 const ServiceWorkerRegistrationObjectInfo& info, | 194 const ServiceWorkerRegistrationObjectInfo& info, |
| 195 const ServiceWorkerVersionAttributes& attrs); | 195 const ServiceWorkerVersionAttributes& attrs); |
| 196 | 196 |
| 197 void OnActivateEvent(int request_id); | 197 void OnActivateEvent(int request_id); |
| 198 void OnExtendableMessageEvent( | 198 void OnExtendableMessageEvent( |
| 199 int request_id, | 199 int request_id, |
| 200 const base::string16& message, | 200 const base::string16& message, |
| 201 const std::vector<TransferredMessagePort>& sent_message_ports, | 201 const std::vector<TransferredMessagePort>& sent_message_ports, |
| 202 const std::vector<int>& new_routing_ids); | 202 const std::vector<int>& new_routing_ids, |
| 203 const ExtendableMessageEventSource& source); |
| 203 void OnInstallEvent(int request_id); | 204 void OnInstallEvent(int request_id); |
| 204 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 205 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); |
| 205 void OnNotificationClickEvent( | 206 void OnNotificationClickEvent( |
| 206 int request_id, | 207 int request_id, |
| 207 int64_t persistent_notification_id, | 208 int64_t persistent_notification_id, |
| 208 const PlatformNotificationData& notification_data, | 209 const PlatformNotificationData& notification_data, |
| 209 int action_index); | 210 int action_index); |
| 210 void OnPushEvent(int request_id, const PushEventPayload& payload); | 211 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 211 void OnNotificationCloseEvent( | 212 void OnNotificationCloseEvent( |
| 212 int request_id, | 213 int request_id, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 scoped_ptr<WorkerContextData> context_; | 269 scoped_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 |