| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void SendWorkerStarted(); | 191 void SendWorkerStarted(); |
| 192 void SetRegistrationInServiceWorkerGlobalScope( | 192 void SetRegistrationInServiceWorkerGlobalScope( |
| 193 const ServiceWorkerRegistrationObjectInfo& info, | 193 const ServiceWorkerRegistrationObjectInfo& info, |
| 194 const ServiceWorkerVersionAttributes& attrs); | 194 const ServiceWorkerVersionAttributes& attrs); |
| 195 | 195 |
| 196 void OnActivateEvent(int request_id); | 196 void OnActivateEvent(int request_id); |
| 197 void OnExtendableMessageEvent( | 197 void OnExtendableMessageEvent( |
| 198 int request_id, | 198 int request_id, |
| 199 const base::string16& message, | 199 const base::string16& message, |
| 200 const std::vector<TransferredMessagePort>& sent_message_ports, | 200 const std::vector<TransferredMessagePort>& sent_message_ports, |
| 201 const std::vector<int>& new_routing_ids); | 201 const std::vector<int>& new_routing_ids, |
| 202 const ExtendableMessageEventSource& source); |
| 202 void OnInstallEvent(int request_id); | 203 void OnInstallEvent(int request_id); |
| 203 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); | 204 void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request); |
| 204 void OnNotificationClickEvent( | 205 void OnNotificationClickEvent( |
| 205 int request_id, | 206 int request_id, |
| 206 int64_t persistent_notification_id, | 207 int64_t persistent_notification_id, |
| 207 const PlatformNotificationData& notification_data, | 208 const PlatformNotificationData& notification_data, |
| 208 int action_index); | 209 int action_index); |
| 209 void OnPushEvent(int request_id, const PushEventPayload& payload); | 210 void OnPushEvent(int request_id, const PushEventPayload& payload); |
| 210 void OnNotificationCloseEvent( | 211 void OnNotificationCloseEvent( |
| 211 int request_id, | 212 int request_id, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Initialized on the worker thread in workerContextStarted and | 266 // Initialized on the worker thread in workerContextStarted and |
| 266 // destructed on the worker thread in willDestroyWorkerContext. | 267 // destructed on the worker thread in willDestroyWorkerContext. |
| 267 scoped_ptr<WorkerContextData> context_; | 268 scoped_ptr<WorkerContextData> context_; |
| 268 | 269 |
| 269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 270 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 } // namespace content | 273 } // namespace content |
| 273 | 274 |
| 274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 275 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |