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_TRANSPORT_IPC_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "ipc/ipc_channel_proxy.h" | 15 #include "ipc/ipc_channel_proxy.h" |
16 #include "media/cast/logging/logging_defines.h" | 16 #include "media/cast/logging/logging_defines.h" |
17 #include "media/cast/net/cast_transport.h" | 17 #include "media/cast/net/cast_transport.h" |
18 | 18 |
19 // This implementation of the CastTransport interface communicates with the | 19 // This implementation of the CastTransport interface communicates with the |
20 // browser process over IPC and relays all calls to/from the cast transport to | 20 // browser process over IPC and relays all calls to/from the cast transport to |
21 // the browser process. The primary reason for this arrangement is to give the | 21 // the browser process. The primary reason for this arrangement is to give the |
22 // renderer less direct control over the UDP sockets. | 22 // renderer less direct control over the UDP sockets. |
23 class CastTransportIPC : public media::cast::CastTransport { | 23 class CastTransportIPC : public media::cast::CastTransport { |
24 public: | 24 public: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 media::cast::CastTransportStatusCallback status_callback_; | 80 media::cast::CastTransportStatusCallback status_callback_; |
81 media::cast::BulkRawEventsCallback raw_events_callback_; | 81 media::cast::BulkRawEventsCallback raw_events_callback_; |
82 using ClientMap = | 82 using ClientMap = |
83 std::map<uint32_t, std::unique_ptr<media::cast::RtcpObserver>>; | 83 std::map<uint32_t, std::unique_ptr<media::cast::RtcpObserver>>; |
84 ClientMap clients_; | 84 ClientMap clients_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(CastTransportIPC); | 86 DISALLOW_COPY_AND_ASSIGN(CastTransportIPC); |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ | 89 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ |
OLD | NEW |