| 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const base::string16& message, | 110 const base::string16& message, |
| 111 const std::vector<int>& sent_message_port_ids); | 111 const std::vector<int>& sent_message_port_ids); |
| 112 void OnIncrementServiceWorkerRefCount(int handle_id); | 112 void OnIncrementServiceWorkerRefCount(int handle_id); |
| 113 void OnDecrementServiceWorkerRefCount(int handle_id); | 113 void OnDecrementServiceWorkerRefCount(int handle_id); |
| 114 void OnIncrementRegistrationRefCount(int registration_handle_id); | 114 void OnIncrementRegistrationRefCount(int registration_handle_id); |
| 115 void OnDecrementRegistrationRefCount(int registration_handle_id); | 115 void OnDecrementRegistrationRefCount(int registration_handle_id); |
| 116 void OnPostMessageToWorker(int handle_id, | 116 void OnPostMessageToWorker(int handle_id, |
| 117 const base::string16& message, | 117 const base::string16& message, |
| 118 const std::vector<int>& sent_message_port_ids); | 118 const std::vector<int>& sent_message_port_ids); |
| 119 void OnServiceWorkerObjectDestroyed(int handle_id); | 119 void OnServiceWorkerObjectDestroyed(int handle_id); |
| 120 void OnTerminateWorker(int handle_id); |
| 120 | 121 |
| 121 ServiceWorkerRegistrationHandle* FindRegistrationHandle( | 122 ServiceWorkerRegistrationHandle* FindRegistrationHandle( |
| 122 int provider_id, | 123 int provider_id, |
| 123 int64 registration_id); | 124 int64 registration_id); |
| 124 | 125 |
| 125 void GetRegistrationObjectInfoAndVersionAttributes( | 126 void GetRegistrationObjectInfoAndVersionAttributes( |
| 126 int provider_id, | 127 int provider_id, |
| 127 ServiceWorkerRegistration* registration, | 128 ServiceWorkerRegistration* registration, |
| 128 ServiceWorkerRegistrationObjectInfo* info, | 129 ServiceWorkerRegistrationObjectInfo* info, |
| 129 ServiceWorkerVersionAttributes* attrs); | 130 ServiceWorkerVersionAttributes* attrs); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 171 |
| 171 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 172 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 172 ScopedVector<IPC::Message> pending_messages_; | 173 ScopedVector<IPC::Message> pending_messages_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 175 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace content | 178 } // namespace content |
| 178 | 179 |
| 179 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 180 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |