| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 int64 version_id); | 115 int64 version_id); |
| 116 | 116 |
| 117 void UnregistrationComplete(int thread_id, | 117 void UnregistrationComplete(int thread_id, |
| 118 int request_id, | 118 int request_id, |
| 119 ServiceWorkerStatusCode status); | 119 ServiceWorkerStatusCode status); |
| 120 | 120 |
| 121 void SendRegistrationError(int thread_id, | 121 void SendRegistrationError(int thread_id, |
| 122 int request_id, | 122 int request_id, |
| 123 ServiceWorkerStatusCode status); | 123 ServiceWorkerStatusCode status); |
| 124 | 124 |
| 125 void SendUnregistrationError(int thread_id, |
| 126 int request_id, |
| 127 ServiceWorkerStatusCode status); |
| 128 |
| 125 ServiceWorkerContextCore* GetContext(); | 129 ServiceWorkerContextCore* GetContext(); |
| 126 | 130 |
| 127 int render_process_id_; | 131 int render_process_id_; |
| 128 MessagePortMessageFilter* const message_port_message_filter_; | 132 MessagePortMessageFilter* const message_port_message_filter_; |
| 129 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; | 133 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; |
| 130 | 134 |
| 131 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; | 135 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; |
| 132 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_; | 136 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_; |
| 133 | 137 |
| 134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 138 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 135 ScopedVector<IPC::Message> pending_messages_; | 139 ScopedVector<IPC::Message> pending_messages_; |
| 136 | 140 |
| 137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 141 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 138 }; | 142 }; |
| 139 | 143 |
| 140 } // namespace content | 144 } // namespace content |
| 141 | 145 |
| 142 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 146 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |