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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 friend class WebServiceWorkerRegistrationImpl; | 130 friend class WebServiceWorkerRegistrationImpl; |
131 | 131 |
132 // WorkerTaskRunner::Observer implementation. | 132 // WorkerTaskRunner::Observer implementation. |
133 virtual void OnWorkerRunLoopStopped() OVERRIDE; | 133 virtual void OnWorkerRunLoopStopped() OVERRIDE; |
134 | 134 |
135 void OnRegistered(int thread_id, | 135 void OnRegistered(int thread_id, |
136 int request_id, | 136 int request_id, |
137 const ServiceWorkerRegistrationObjectInfo& info, | 137 const ServiceWorkerRegistrationObjectInfo& info, |
138 const ServiceWorkerVersionAttributes& attrs); | 138 const ServiceWorkerVersionAttributes& attrs); |
139 void OnUnregistered(int thread_id, | 139 void OnUnregistered(int thread_id, |
140 int request_id); | 140 int request_id, |
| 141 bool is_success); |
141 void OnRegistrationError(int thread_id, | 142 void OnRegistrationError(int thread_id, |
142 int request_id, | 143 int request_id, |
143 blink::WebServiceWorkerError::ErrorType error_type, | 144 blink::WebServiceWorkerError::ErrorType error_type, |
144 const base::string16& message); | 145 const base::string16& message); |
145 void OnUnregistrationError(int thread_id, | 146 void OnUnregistrationError(int thread_id, |
146 int request_id, | 147 int request_id, |
147 blink::WebServiceWorkerError::ErrorType error_type, | 148 blink::WebServiceWorkerError::ErrorType error_type, |
148 const base::string16& message); | 149 const base::string16& message); |
149 void OnServiceWorkerStateChanged(int thread_id, | 150 void OnServiceWorkerStateChanged(int thread_id, |
150 int handle_id, | 151 int handle_id, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 WorkerToProviderMap worker_to_provider_; | 202 WorkerToProviderMap worker_to_provider_; |
202 | 203 |
203 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 204 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
204 | 205 |
205 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 206 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
206 }; | 207 }; |
207 | 208 |
208 } // namespace content | 209 } // namespace content |
209 | 210 |
210 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 211 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
OLD | NEW |