| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const std::vector<int>& sent_message_port_ids); | 95 const std::vector<int>& sent_message_port_ids); |
| 96 void OnIncrementServiceWorkerRefCount(int handle_id); | 96 void OnIncrementServiceWorkerRefCount(int handle_id); |
| 97 void OnDecrementServiceWorkerRefCount(int handle_id); | 97 void OnDecrementServiceWorkerRefCount(int handle_id); |
| 98 void OnIncrementRegistrationRefCount(int registration_handle_id); | 98 void OnIncrementRegistrationRefCount(int registration_handle_id); |
| 99 void OnDecrementRegistrationRefCount(int registration_handle_id); | 99 void OnDecrementRegistrationRefCount(int registration_handle_id); |
| 100 void OnPostMessageToWorker(int handle_id, | 100 void OnPostMessageToWorker(int handle_id, |
| 101 const base::string16& message, | 101 const base::string16& message, |
| 102 const std::vector<int>& sent_message_port_ids); | 102 const std::vector<int>& sent_message_port_ids); |
| 103 void OnServiceWorkerObjectDestroyed(int handle_id); | 103 void OnServiceWorkerObjectDestroyed(int handle_id); |
| 104 | 104 |
| 105 ServiceWorkerHandle* FindHandle( | |
| 106 int provider_id, | |
| 107 int64 version_id); | |
| 108 ServiceWorkerRegistrationHandle* FindRegistrationHandle( | 105 ServiceWorkerRegistrationHandle* FindRegistrationHandle( |
| 109 int provider_id, | 106 int provider_id, |
| 110 int64 registration_id); | 107 int64 registration_id); |
| 111 | 108 |
| 112 // Callbacks from ServiceWorkerContextCore | 109 // Callbacks from ServiceWorkerContextCore |
| 113 void RegistrationComplete(int thread_id, | 110 void RegistrationComplete(int thread_id, |
| 114 int provider_id, | 111 int provider_id, |
| 115 int request_id, | 112 int request_id, |
| 116 ServiceWorkerStatusCode status, | 113 ServiceWorkerStatusCode status, |
| 117 int64 registration_id, | 114 int64 registration_id, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 136 | 133 |
| 137 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 138 ScopedVector<IPC::Message> pending_messages_; | 135 ScopedVector<IPC::Message> pending_messages_; |
| 139 | 136 |
| 140 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 141 }; | 138 }; |
| 142 | 139 |
| 143 } // namespace content | 140 } // namespace content |
| 144 | 141 |
| 145 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 142 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |