OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const ServiceWorkerRegistrationObjectInfo& info); | 198 const ServiceWorkerRegistrationObjectInfo& info); |
199 void OnSetControllerServiceWorker(int thread_id, | 199 void OnSetControllerServiceWorker(int thread_id, |
200 int provider_id, | 200 int provider_id, |
201 const ServiceWorkerObjectInfo& info, | 201 const ServiceWorkerObjectInfo& info, |
202 bool should_notify_controllerchange); | 202 bool should_notify_controllerchange); |
203 void OnPostMessage(int thread_id, | 203 void OnPostMessage(int thread_id, |
204 int provider_id, | 204 int provider_id, |
205 const base::string16& message, | 205 const base::string16& message, |
206 const std::vector<int>& sent_message_port_ids, | 206 const std::vector<int>& sent_message_port_ids, |
207 const std::vector<int>& new_routing_ids); | 207 const std::vector<int>& new_routing_ids); |
208 void OnGetClientInfo(int thread_id, | |
209 int embedded_worker_id, | |
210 int request_id, | |
211 int provider_id); | |
212 | 208 |
213 void SetReadyRegistration( | 209 void SetReadyRegistration( |
214 int provider_id, | 210 int provider_id, |
215 int registration_handle_id); | 211 int registration_handle_id); |
216 | 212 |
217 // Keeps map from handle_id to ServiceWorker object. | 213 // Keeps map from handle_id to ServiceWorker object. |
218 void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker); | 214 void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker); |
219 void RemoveServiceWorker(int handle_id); | 215 void RemoveServiceWorker(int handle_id); |
220 | 216 |
221 // Keeps map from registration_handle_id to ServiceWorkerRegistration object. | 217 // Keeps map from registration_handle_id to ServiceWorkerRegistration object. |
(...skipping 22 matching lines...) Expand all Loading... |
244 WorkerToProviderMap worker_to_provider_; | 240 WorkerToProviderMap worker_to_provider_; |
245 | 241 |
246 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 242 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
247 | 243 |
248 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 244 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
249 }; | 245 }; |
250 | 246 |
251 } // namespace content | 247 } // namespace content |
252 | 248 |
253 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 249 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
OLD | NEW |