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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 int request_id, | 268 int request_id, |
269 int registration_id, | 269 int registration_id, |
270 const std::string& value, | 270 const std::string& value, |
271 ServiceWorkerStatusCode status); | 271 ServiceWorkerStatusCode status); |
272 | 272 |
273 const int render_process_id_; | 273 const int render_process_id_; |
274 MessagePortMessageFilter* const message_port_message_filter_; | 274 MessagePortMessageFilter* const message_port_message_filter_; |
275 ResourceContext* resource_context_; | 275 ResourceContext* resource_context_; |
276 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; | 276 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; |
277 | 277 |
278 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; | 278 IDMap<std::unique_ptr<ServiceWorkerHandle>> handles_; |
279 | 279 |
280 using RegistrationHandleMap = | 280 using RegistrationHandleMap = |
281 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer>; | 281 IDMap<std::unique_ptr<ServiceWorkerRegistrationHandle>>; |
282 RegistrationHandleMap registration_handles_; | 282 RegistrationHandleMap registration_handles_; |
283 | 283 |
284 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 284 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
285 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; | 285 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; |
286 | 286 |
287 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; | 287 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; |
288 | 288 |
289 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; | 289 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; |
290 | 290 |
291 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 291 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
292 }; | 292 }; |
293 | 293 |
294 } // namespace content | 294 } // namespace content |
295 | 295 |
296 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 296 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |