| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 typedef std::map<int, ServiceWorkerProviderContext*> WorkerToProviderMap; | 120 typedef std::map<int, ServiceWorkerProviderContext*> WorkerToProviderMap; |
| 121 typedef std::map<int, WebServiceWorkerRegistrationImpl*> | 121 typedef std::map<int, WebServiceWorkerRegistrationImpl*> |
| 122 RegistrationObjectMap; | 122 RegistrationObjectMap; |
| 123 | 123 |
| 124 friend class WebServiceWorkerImpl; | 124 friend class WebServiceWorkerImpl; |
| 125 friend class WebServiceWorkerRegistrationImpl; | 125 friend class WebServiceWorkerRegistrationImpl; |
| 126 | 126 |
| 127 // WorkerTaskRunner::Observer implementation. | 127 // WorkerTaskRunner::Observer implementation. |
| 128 virtual void OnWorkerRunLoopStopped() OVERRIDE; | 128 virtual void OnWorkerRunLoopStopped() OVERRIDE; |
| 129 | 129 |
| 130 void OnAssociateRegistration(int thread_id, |
| 131 int provider_id, |
| 132 const ServiceWorkerRegistrationObjectInfo& info); |
| 133 void OnUnassociateRegistration(int thread_id, |
| 134 int provider_id); |
| 130 void OnRegistered(int thread_id, | 135 void OnRegistered(int thread_id, |
| 131 int request_id, | 136 int request_id, |
| 132 const ServiceWorkerRegistrationObjectInfo& info, | 137 const ServiceWorkerRegistrationObjectInfo& info, |
| 133 const ServiceWorkerVersionAttributes& attrs); | 138 const ServiceWorkerVersionAttributes& attrs); |
| 134 void OnUnregistered(int thread_id, | 139 void OnUnregistered(int thread_id, |
| 135 int request_id); | 140 int request_id); |
| 136 void OnRegistrationError(int thread_id, | 141 void OnRegistrationError(int thread_id, |
| 137 int request_id, | 142 int request_id, |
| 138 blink::WebServiceWorkerError::ErrorType error_type, | 143 blink::WebServiceWorkerError::ErrorType error_type, |
| 139 const base::string16& message); | 144 const base::string16& message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 WorkerToProviderMap worker_to_provider_; | 196 WorkerToProviderMap worker_to_provider_; |
| 192 | 197 |
| 193 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 198 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 194 | 199 |
| 195 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 200 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 196 }; | 201 }; |
| 197 | 202 |
| 198 } // namespace content | 203 } // namespace content |
| 199 | 204 |
| 200 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 205 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |