| 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_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class CastTransportHostFilter : public content::BrowserMessageFilter { | 28 class CastTransportHostFilter : public content::BrowserMessageFilter { |
| 29 public: | 29 public: |
| 30 CastTransportHostFilter(); | 30 CastTransportHostFilter(); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 ~CastTransportHostFilter() override; | 33 ~CastTransportHostFilter() override; |
| 34 | 34 |
| 35 // Status callback to create UdpTransport. | 35 // Status callback to create UdpTransport. |
| 36 void OnStatusChanged(int32_t channel_id, | 36 void OnStatusChanged(int32_t channel_id, |
| 37 media::cast::CastTransportStatus status); | 37 media::cast::CastTransportStatus status); |
| 38 void SendRtt(int32_t channel_id, | |
| 39 uint32_t rtp_sender_ssrc, | |
| 40 base::TimeDelta rtt); | |
| 41 void SendCastMessage(int32_t channel_id, | |
| 42 uint32_t rtp_sender_ssrc, | |
| 43 const media::cast::RtcpCastMessage& cast_message); | |
| 44 void SendReceivedPli(int32_t channel_id, uint32_t rtp_sender_ssrc); | |
| 45 | 38 |
| 46 // BrowserMessageFilter implementation. | 39 // BrowserMessageFilter implementation. |
| 47 bool OnMessageReceived(const IPC::Message& message) override; | 40 bool OnMessageReceived(const IPC::Message& message) override; |
| 48 | 41 |
| 49 // Forwarding functions. | 42 // Forwarding functions. |
| 50 void OnInitializeAudio(int32_t channel_id, | 43 void OnInitializeAudio(int32_t channel_id, |
| 51 const media::cast::CastTransportRtpConfig& config); | 44 const media::cast::CastTransportRtpConfig& config); |
| 52 void OnInitializeVideo(int32_t channel_id, | 45 void OnInitializeVideo(int32_t channel_id, |
| 53 const media::cast::CastTransportRtpConfig& config); | 46 const media::cast::CastTransportRtpConfig& config); |
| 54 void OnInsertFrame(int32_t channel_id, | 47 void OnInsertFrame(int32_t channel_id, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_; | 96 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_; |
| 104 | 97 |
| 105 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; | 98 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; |
| 106 | 99 |
| 107 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); | 100 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); |
| 108 }; | 101 }; |
| 109 | 102 |
| 110 } // namespace cast | 103 } // namespace cast |
| 111 | 104 |
| 112 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 105 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
| OLD | NEW |