Chromium Code Reviews| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 int render_process_id_; | 160 int render_process_id_; |
| 161 MessagePortMessageFilter* const message_port_message_filter_; | 161 MessagePortMessageFilter* const message_port_message_filter_; |
| 162 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; | 162 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; |
| 163 | 163 |
| 164 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; | 164 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; |
| 165 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_; | 165 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_; |
| 166 | 166 |
| 167 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 167 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 168 ScopedVector<IPC::Message> pending_messages_; | 168 ScopedVector<IPC::Message> pending_messages_; |
| 169 | 169 |
| 170 IDMap<base::TimeTicks, IDMapExternalPointer> registration_start_timings_; | |
|
nhiroki
2014/09/26 07:28:17
Why don't you use std::map?
shimazu
2014/09/29 08:15:47
Done.
| |
| 171 | |
| 170 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 172 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 } // namespace content | 175 } // namespace content |
| 174 | 176 |
| 175 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 177 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |