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_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
15 | 15 |
16 struct EmbeddedWorkerMsg_StartWorker_Params; | 16 struct EmbeddedWorkerMsg_StartWorker_Params; |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // A tiny dispatcher which handles embedded worker start/stop messages. | 21 // A tiny dispatcher which handles embedded worker start/stop messages. |
(...skipping 16 matching lines...) Expand all Loading... |
38 IDMap<WorkerWrapper, IDMapOwnPointer> workers_; | 38 IDMap<WorkerWrapper, IDMapOwnPointer> workers_; |
39 std::map<int /* embedded_worker_id */, base::TimeTicks> stop_worker_times_; | 39 std::map<int /* embedded_worker_id */, base::TimeTicks> stop_worker_times_; |
40 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_; | 40 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher); | 42 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace content | 45 } // namespace content |
46 | 46 |
47 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ | 47 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ |
OLD | NEW |