| 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> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 CastTransportIPC(const net::IPEndPoint& local_end_point, | 25 CastTransportIPC(const net::IPEndPoint& local_end_point, |
| 26 const net::IPEndPoint& remote_end_point, | 26 const net::IPEndPoint& remote_end_point, |
| 27 std::unique_ptr<base::DictionaryValue> options, | 27 std::unique_ptr<base::DictionaryValue> options, |
| 28 const media::cast::PacketReceiverCallback& packet_callback, | 28 const media::cast::PacketReceiverCallback& packet_callback, |
| 29 const media::cast::CastTransportStatusCallback& status_cb, | 29 const media::cast::CastTransportStatusCallback& status_cb, |
| 30 const media::cast::BulkRawEventsCallback& raw_events_cb); | 30 const media::cast::BulkRawEventsCallback& raw_events_cb); |
| 31 | 31 |
| 32 ~CastTransportIPC() override; | 32 ~CastTransportIPC() override; |
| 33 | 33 |
| 34 // media::cast::CastTransport implementation. | 34 // media::cast::CastTransport implementation. |
| 35 void InitializeAudio( | 35 void InitializeStream( |
| 36 const media::cast::CastTransportRtpConfig& config, | |
| 37 std::unique_ptr<media::cast::RtcpObserver> rtcp_observer) override; | |
| 38 void InitializeVideo( | |
| 39 const media::cast::CastTransportRtpConfig& config, | 36 const media::cast::CastTransportRtpConfig& config, |
| 40 std::unique_ptr<media::cast::RtcpObserver> rtcp_observer) override; | 37 std::unique_ptr<media::cast::RtcpObserver> rtcp_observer) override; |
| 41 void InsertFrame(uint32_t ssrc, | 38 void InsertFrame(uint32_t ssrc, |
| 42 const media::cast::EncodedFrame& frame) override; | 39 const media::cast::EncodedFrame& frame) override; |
| 43 void SendSenderReport( | 40 void SendSenderReport( |
| 44 uint32_t ssrc, | 41 uint32_t ssrc, |
| 45 base::TimeTicks current_time, | 42 base::TimeTicks current_time, |
| 46 media::cast::RtpTimeTicks current_time_as_rtp_timestamp) override; | 43 media::cast::RtpTimeTicks current_time_as_rtp_timestamp) override; |
| 47 void CancelSendingFrames( | 44 void CancelSendingFrames( |
| 48 uint32_t ssrc, | 45 uint32_t ssrc, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 media::cast::CastTransportStatusCallback status_callback_; | 77 media::cast::CastTransportStatusCallback status_callback_; |
| 81 media::cast::BulkRawEventsCallback raw_events_callback_; | 78 media::cast::BulkRawEventsCallback raw_events_callback_; |
| 82 using ClientMap = | 79 using ClientMap = |
| 83 std::map<uint32_t, std::unique_ptr<media::cast::RtcpObserver>>; | 80 std::map<uint32_t, std::unique_ptr<media::cast::RtcpObserver>>; |
| 84 ClientMap clients_; | 81 ClientMap clients_; |
| 85 | 82 |
| 86 DISALLOW_COPY_AND_ASSIGN(CastTransportIPC); | 83 DISALLOW_COPY_AND_ASSIGN(CastTransportIPC); |
| 87 }; | 84 }; |
| 88 | 85 |
| 89 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ | 86 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_IPC_H_ |
| OLD | NEW |