Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: chrome/renderer/media/cast_transport_sender_ipc.h

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/cast_messages.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SENDER_IPC_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
7 7
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "ipc/ipc_channel_proxy.h" 9 #include "ipc/ipc_channel_proxy.h"
10 #include "media/cast/logging/logging_defines.h" 10 #include "media/cast/logging/logging_defines.h"
(...skipping 30 matching lines...) Expand all
41 uint32 packet_type_flags, 41 uint32 packet_type_flags,
42 uint32 ntp_seconds, 42 uint32 ntp_seconds,
43 uint32 ntp_fraction, 43 uint32 ntp_fraction,
44 uint32 rtp_timestamp, 44 uint32 rtp_timestamp,
45 const media::cast::transport::RtcpDlrrReportBlock& dlrr, 45 const media::cast::transport::RtcpDlrrReportBlock& dlrr,
46 uint32 sending_ssrc, 46 uint32 sending_ssrc,
47 const std::string& c_name) OVERRIDE; 47 const std::string& c_name) OVERRIDE;
48 virtual void ResendPackets( 48 virtual void ResendPackets(
49 bool is_audio, 49 bool is_audio,
50 const media::cast::transport::MissingFramesAndPacketsMap& missing_packets, 50 const media::cast::transport::MissingFramesAndPacketsMap& missing_packets,
51 bool cancel_rtx_if_not_in_list) 51 bool cancel_rtx_if_not_in_list,
52 base::TimeDelta dedupe_window)
52 OVERRIDE; 53 OVERRIDE;
53 54
54 void OnReceivedPacket(const media::cast::transport::Packet& packet); 55 void OnReceivedPacket(const media::cast::transport::Packet& packet);
55 void OnNotifyStatusChange( 56 void OnNotifyStatusChange(
56 media::cast::transport::CastTransportStatus status); 57 media::cast::transport::CastTransportStatus status);
57 void OnRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); 58 void OnRawEvents(const std::vector<media::cast::PacketEvent>& packet_events);
58 59
59 private: 60 private:
60 void Send(IPC::Message* message); 61 void Send(IPC::Message* message);
61 62
62 int32 channel_id_; 63 int32 channel_id_;
63 media::cast::transport::PacketReceiverCallback packet_callback_; 64 media::cast::transport::PacketReceiverCallback packet_callback_;
64 media::cast::transport::CastTransportStatusCallback status_callback_; 65 media::cast::transport::CastTransportStatusCallback status_callback_;
65 media::cast::transport::BulkRawEventsCallback raw_events_callback_; 66 media::cast::transport::BulkRawEventsCallback raw_events_callback_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC); 68 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC);
68 }; 69 };
69 70
70 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ 71 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
OLDNEW
« no previous file with comments | « chrome/common/cast_messages.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698