OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "ipc/ipc_channel_proxy.h" | 14 #include "ipc/ipc_channel_proxy.h" |
15 #include "ipc/message_filter.h" | 15 #include "ipc/message_filter.h" |
16 #include "media/cast/cast_sender.h" | 16 #include "media/cast/cast_sender.h" |
17 #include "media/cast/logging/logging_defines.h" | 17 #include "media/cast/logging/logging_defines.h" |
18 #include "media/cast/net/cast_transport.h" | 18 #include "media/cast/net/cast_transport.h" |
19 | 19 |
20 class CastTransportIPC; | 20 class CastTransportIPC; |
21 | 21 |
22 // This dispatcher listens to incoming IPC messages and sends | 22 // This dispatcher listens to incoming IPC messages and sends |
23 // the call to the correct CastTransportIPC instance. | 23 // the call to the correct CastTransportIPC instance. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Task runner on which IPC calls are driven. | 66 // Task runner on which IPC calls are driven. |
67 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 67 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
68 | 68 |
69 // A map of stream ids to delegates; must only be accessed on | 69 // A map of stream ids to delegates; must only be accessed on |
70 // |io_message_loop_|. | 70 // |io_message_loop_|. |
71 IDMap<CastTransportIPC> id_map_; | 71 IDMap<CastTransportIPC> id_map_; |
72 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher); | 72 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ | 75 #endif // CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ |
OLD | NEW |