| 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 #include "chrome/browser/media/cast_transport_host_filter.h" | 5 #include "chrome/browser/media/cast_transport_host_filter.h" |
| 6 #include "media/cast/transport/cast_transport_sender.h" | 6 #include "media/cast/transport/cast_transport_sender.h" |
| 7 | 7 |
| 8 namespace cast { | 8 namespace cast { |
| 9 | 9 |
| 10 CastTransportHostFilter::CastTransportHostFilter() | 10 CastTransportHostFilter::CastTransportHostFilter() { |
| 11 : BrowserMessageFilter(CastMsgStart) { | |
| 12 } | 11 } |
| 13 | 12 |
| 14 CastTransportHostFilter::~CastTransportHostFilter() { | 13 CastTransportHostFilter::~CastTransportHostFilter() { |
| 15 } | 14 } |
| 16 | 15 |
| 17 bool CastTransportHostFilter::OnMessageReceived(const IPC::Message& message, | 16 bool CastTransportHostFilter::OnMessageReceived(const IPC::Message& message, |
| 18 bool* message_was_ok) { | 17 bool* message_was_ok) { |
| 19 bool handled = true; | 18 bool handled = true; |
| 20 IPC_BEGIN_MESSAGE_MAP_EX(CastTransportHostFilter, message, *message_was_ok) | 19 IPC_BEGIN_MESSAGE_MAP_EX(CastTransportHostFilter, message, *message_was_ok) |
| 21 IPC_MESSAGE_HANDLER(CastHostMsg_New, OnNew) | 20 IPC_MESSAGE_HANDLER(CastHostMsg_New, OnNew) |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 id_map_.Lookup(channel_id); | 163 id_map_.Lookup(channel_id); |
| 165 if (sender) { | 164 if (sender) { |
| 166 sender->ResendPackets(is_audio, missing_packets); | 165 sender->ResendPackets(is_audio, missing_packets); |
| 167 } else { | 166 } else { |
| 168 DVLOG(1) | 167 DVLOG(1) |
| 169 << "CastTransportHostFilter::OnResendPackets on non-existing channel"; | 168 << "CastTransportHostFilter::OnResendPackets on non-existing channel"; |
| 170 } | 169 } |
| 171 } | 170 } |
| 172 | 171 |
| 173 } // namespace cast | 172 } // namespace cast |
| OLD | NEW |