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

Side by Side Diff: media/cast/transport/cast_transport_sender_impl.h

Issue 281453003: Cast: Simplify code path for RTCP sender report (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_
6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 virtual void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame, 57 virtual void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame,
58 const base::TimeTicks& recorded_time) 58 const base::TimeTicks& recorded_time)
59 OVERRIDE; 59 OVERRIDE;
60 60
61 virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame, 61 virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame,
62 const base::TimeTicks& capture_time) 62 const base::TimeTicks& capture_time)
63 OVERRIDE; 63 OVERRIDE;
64 64
65 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, 65 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags,
66 const RtcpSenderInfo& sender_info, 66 uint32 ntp_seconds,
67 uint32 ntp_fraction,
68 uint32 rtp_timestamp,
67 const RtcpDlrrReportBlock& dlrr, 69 const RtcpDlrrReportBlock& dlrr,
68 uint32 sending_ssrc, 70 uint32 sending_ssrc,
69 const std::string& c_name) OVERRIDE; 71 const std::string& c_name) OVERRIDE;
70 72
71 virtual void ResendPackets(bool is_audio, 73 virtual void ResendPackets(bool is_audio,
72 const MissingFramesAndPacketsMap& missing_packets) 74 const MissingFramesAndPacketsMap& missing_packets)
73 OVERRIDE; 75 OVERRIDE;
74 76
75 virtual void SubscribeAudioRtpStatsCallback(
76 const CastTransportRtpStatistics& callback) OVERRIDE;
77
78 virtual void SubscribeVideoRtpStatsCallback(
79 const CastTransportRtpStatistics& callback) OVERRIDE;
80
81 private: 77 private:
82 // If |raw_events_callback_| is non-null, calls it with events collected 78 // If |raw_events_callback_| is non-null, calls it with events collected
83 // by |event_subscriber_| since last call. 79 // by |event_subscriber_| since last call.
84 void SendRawEvents(); 80 void SendRawEvents();
85 81
86 base::TickClock* clock_; // Not owned by this class. 82 base::TickClock* clock_; // Not owned by this class.
87 CastTransportStatusCallback status_callback_; 83 CastTransportStatusCallback status_callback_;
88 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 84 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
89 85
90 scoped_ptr<UdpTransport> transport_; 86 scoped_ptr<UdpTransport> transport_;
(...skipping 10 matching lines...) Expand all
101 BulkRawEventsCallback raw_events_callback_; 97 BulkRawEventsCallback raw_events_callback_;
102 98
103 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); 99 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl);
104 }; 100 };
105 101
106 } // namespace transport 102 } // namespace transport
107 } // namespace cast 103 } // namespace cast
108 } // namespace media 104 } // namespace media
109 105
110 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ 106 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698