| Index: content/browser/service_worker/service_worker_dispatcher_host.h
|
| diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
|
| index b7a991bf6297d9f222c6690c7bf8f6e6a3636994..a951561d882144f1626302c2d676922c5307448d 100644
|
| --- a/content/browser/service_worker/service_worker_dispatcher_host.h
|
| +++ b/content/browser/service_worker/service_worker_dispatcher_host.h
|
| @@ -47,6 +47,12 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
|
|
|
| void RegisterServiceWorkerHandle(scoped_ptr<ServiceWorkerHandle> handle);
|
|
|
| + // Updates message ports registered for |message_port_ids| and return
|
| + // new routing IDs for the updated ports.
|
| + // Non-null |new_routing_ids| must be given.
|
| + void UpdateMessagePorts(const std::vector<int>& message_port_ids,
|
| + std::vector<int>* new_routing_ids);
|
| +
|
| protected:
|
| virtual ~ServiceWorkerDispatcherHost();
|
|
|
| @@ -84,6 +90,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
|
| const std::vector<int>& sent_message_port_ids);
|
| void OnIncrementServiceWorkerRefCount(int handle_id);
|
| void OnDecrementServiceWorkerRefCount(int handle_id);
|
| + void OnPostMessageToWorker(int handle_id,
|
| + const base::string16& message,
|
| + const std::vector<int>& sent_message_port_ids);
|
| + void OnServiceWorkerObjectDestroyed(int handle_id);
|
|
|
| // Callbacks from ServiceWorkerContextCore
|
| void RegistrationComplete(int thread_id,
|
|
|