| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 123 void OnSetInstallingServiceWorker(int thread_id, |
| 124 int provider_id, | 124 int provider_id, |
| 125 const ServiceWorkerObjectInfo& info); | 125 const ServiceWorkerObjectInfo& info); |
| 126 void OnSetWaitingServiceWorker(int thread_id, | 126 void OnSetWaitingServiceWorker(int thread_id, |
| 127 int provider_id, | 127 int provider_id, |
| 128 const ServiceWorkerObjectInfo& info); | 128 const ServiceWorkerObjectInfo& info); |
| 129 void OnSetActiveServiceWorker(int thread_id, |
| 130 int provider_id, |
| 131 const ServiceWorkerObjectInfo& info); |
| 129 void OnSetControllerServiceWorker(int thread_id, | 132 void OnSetControllerServiceWorker(int thread_id, |
| 130 int provider_id, | 133 int provider_id, |
| 131 const ServiceWorkerObjectInfo& info); | 134 const ServiceWorkerObjectInfo& info); |
| 132 void OnPostMessage(int thread_id, | 135 void OnPostMessage(int thread_id, |
| 133 int provider_id, | 136 int provider_id, |
| 134 const base::string16& message, | 137 const base::string16& message, |
| 135 const std::vector<int>& sent_message_port_ids, | 138 const std::vector<int>& sent_message_port_ids, |
| 136 const std::vector<int>& new_routing_ids); | 139 const std::vector<int>& new_routing_ids); |
| 137 | 140 |
| 138 // Keeps map from handle_id to ServiceWorker object. | 141 // Keeps map from handle_id to ServiceWorker object. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 149 WorkerToProviderMap worker_to_provider_; | 152 WorkerToProviderMap worker_to_provider_; |
| 150 | 153 |
| 151 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 154 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 152 | 155 |
| 153 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 156 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace content | 159 } // namespace content |
| 157 | 160 |
| 158 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 161 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |