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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const ServiceWorkerObjectInfo& info); | 113 const ServiceWorkerObjectInfo& info); |
114 void OnUnregistered(int thread_id, | 114 void OnUnregistered(int thread_id, |
115 int request_id); | 115 int request_id); |
116 void OnRegistrationError(int thread_id, | 116 void OnRegistrationError(int thread_id, |
117 int request_id, | 117 int request_id, |
118 blink::WebServiceWorkerError::ErrorType error_type, | 118 blink::WebServiceWorkerError::ErrorType error_type, |
119 const base::string16& message); | 119 const base::string16& message); |
120 void OnServiceWorkerStateChanged(int thread_id, | 120 void OnServiceWorkerStateChanged(int thread_id, |
121 int handle_id, | 121 int handle_id, |
122 blink::WebServiceWorkerState state); | 122 blink::WebServiceWorkerState state); |
| 123 void OnSetInstallingServiceWorker(int thread_id, |
| 124 int provider_id, |
| 125 const ServiceWorkerObjectInfo& info); |
123 void OnSetWaitingServiceWorker(int thread_id, | 126 void OnSetWaitingServiceWorker(int thread_id, |
124 int provider_id, | 127 int provider_id, |
125 const ServiceWorkerObjectInfo& info); | 128 const ServiceWorkerObjectInfo& info); |
126 void OnSetControllerServiceWorker(int thread_id, | 129 void OnSetControllerServiceWorker(int thread_id, |
127 int provider_id, | 130 int provider_id, |
128 const ServiceWorkerObjectInfo& info); | 131 const ServiceWorkerObjectInfo& info); |
129 void OnPostMessage(int thread_id, | 132 void OnPostMessage(int thread_id, |
130 int provider_id, | 133 int provider_id, |
131 const base::string16& message, | 134 const base::string16& message, |
132 const std::vector<int>& sent_message_port_ids, | 135 const std::vector<int>& sent_message_port_ids, |
(...skipping 13 matching lines...) Expand all Loading... |
146 WorkerToProviderMap worker_to_provider_; | 149 WorkerToProviderMap worker_to_provider_; |
147 | 150 |
148 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 151 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
149 | 152 |
150 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 153 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
151 }; | 154 }; |
152 | 155 |
153 } // namespace content | 156 } // namespace content |
154 | 157 |
155 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 158 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
OLD | NEW |