| 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" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static CastIPCDispatcher* global_instance_; | 61 static CastIPCDispatcher* global_instance_; |
| 62 | 62 |
| 63 // For IPC Send(); must only be accesed on |io_message_loop_|. | 63 // For IPC Send(); must only be accesed on |io_message_loop_|. |
| 64 IPC::Sender* sender_; | 64 IPC::Sender* sender_; |
| 65 | 65 |
| 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 |