| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void OnPostMessage(int handle_id, | 90 void OnPostMessage(int handle_id, |
| 91 const base::string16& message, | 91 const base::string16& message, |
| 92 const std::vector<int>& sent_message_port_ids); | 92 const std::vector<int>& sent_message_port_ids); |
| 93 void OnIncrementServiceWorkerRefCount(int handle_id); | 93 void OnIncrementServiceWorkerRefCount(int handle_id); |
| 94 void OnDecrementServiceWorkerRefCount(int handle_id); | 94 void OnDecrementServiceWorkerRefCount(int handle_id); |
| 95 void OnPostMessageToWorker(int handle_id, | 95 void OnPostMessageToWorker(int handle_id, |
| 96 const base::string16& message, | 96 const base::string16& message, |
| 97 const std::vector<int>& sent_message_port_ids); | 97 const std::vector<int>& sent_message_port_ids); |
| 98 void OnServiceWorkerObjectDestroyed(int handle_id); | 98 void OnServiceWorkerObjectDestroyed(int handle_id); |
| 99 | 99 |
| 100 ServiceWorkerHandle* FindHandle(int thread_id, int64 version_id); |
| 101 |
| 100 // Callbacks from ServiceWorkerContextCore | 102 // Callbacks from ServiceWorkerContextCore |
| 101 void RegistrationComplete(int thread_id, | 103 void RegistrationComplete(int thread_id, |
| 102 int request_id, | 104 int request_id, |
| 103 ServiceWorkerStatusCode status, | 105 ServiceWorkerStatusCode status, |
| 104 int64 registration_id, | 106 int64 registration_id, |
| 105 int64 version_id); | 107 int64 version_id); |
| 106 | 108 |
| 107 void UnregistrationComplete(int thread_id, | 109 void UnregistrationComplete(int thread_id, |
| 108 int request_id, | 110 int request_id, |
| 109 ServiceWorkerStatusCode status); | 111 ServiceWorkerStatusCode status); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 122 | 124 |
| 123 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 125 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 124 ScopedVector<IPC::Message> pending_messages_; | 126 ScopedVector<IPC::Message> pending_messages_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 128 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace content | 131 } // namespace content |
| 130 | 132 |
| 131 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |