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

Side by Side Diff: chrome/browser/media/cast_transport_host_filter.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 | « no previous file | chrome/browser/media/cast_transport_host_filter.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_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 "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "chrome/common/cast_messages.h" 10 #include "chrome/common/cast_messages.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 int32 channel_id, 47 int32 channel_id,
48 const media::cast::transport::EncodedFrame& video_frame); 48 const media::cast::transport::EncodedFrame& video_frame);
49 void OnSendRtcpFromRtpSender( 49 void OnSendRtcpFromRtpSender(
50 int32 channel_id, 50 int32 channel_id,
51 const media::cast::transport::SendRtcpFromRtpSenderData& data, 51 const media::cast::transport::SendRtcpFromRtpSenderData& data,
52 const media::cast::transport::RtcpDlrrReportBlock& dlrr); 52 const media::cast::transport::RtcpDlrrReportBlock& dlrr);
53 void OnResendPackets( 53 void OnResendPackets(
54 int32 channel_id, 54 int32 channel_id,
55 bool is_audio, 55 bool is_audio,
56 const media::cast::MissingFramesAndPacketsMap& missing_packets, 56 const media::cast::MissingFramesAndPacketsMap& missing_packets,
57 bool cancel_rtx_if_not_in_list); 57 bool cancel_rtx_if_not_in_list,
58 base::TimeDelta dedupe_window);
58 void OnNew( 59 void OnNew(
59 int32 channel_id, 60 int32 channel_id,
60 const net::IPEndPoint& remote_end_point); 61 const net::IPEndPoint& remote_end_point);
61 void OnDelete(int32 channel_id); 62 void OnDelete(int32 channel_id);
62 63
63 IDMap<media::cast::transport::CastTransportSender, IDMapOwnPointer> id_map_; 64 IDMap<media::cast::transport::CastTransportSender, IDMapOwnPointer> id_map_;
64 65
65 // Clock used by Cast transport. 66 // Clock used by Cast transport.
66 base::DefaultTickClock clock_; 67 base::DefaultTickClock clock_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); 69 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter);
69 }; 70 };
70 71
71 } // namespace cast 72 } // namespace cast
72 73
73 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ 74 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/cast_transport_host_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698