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

Side by Side Diff: media/cast/receiver/cast_receiver_impl.h

Issue 655713003: Standardize usage of virtual/override/final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « media/cast/receiver/audio_decoder.cc ('k') | media/cast/receiver/frame_receiver.h » ('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 MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_H_ 5 #ifndef MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_H_
6 #define MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_H_ 6 #define MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "media/cast/cast_config.h" 10 #include "media/cast/cast_config.h"
(...skipping 11 matching lines...) Expand all
22 // This is a pure owner class that groups all required receiver-related objects 22 // This is a pure owner class that groups all required receiver-related objects
23 // together, such as the paced packet sender, audio/video RTP frame receivers, 23 // together, such as the paced packet sender, audio/video RTP frame receivers,
24 // and software decoders (created on-demand). 24 // and software decoders (created on-demand).
25 class CastReceiverImpl : public CastReceiver { 25 class CastReceiverImpl : public CastReceiver {
26 public: 26 public:
27 CastReceiverImpl(scoped_refptr<CastEnvironment> cast_environment, 27 CastReceiverImpl(scoped_refptr<CastEnvironment> cast_environment,
28 const FrameReceiverConfig& audio_config, 28 const FrameReceiverConfig& audio_config,
29 const FrameReceiverConfig& video_config, 29 const FrameReceiverConfig& video_config,
30 PacketSender* const packet_sender); 30 PacketSender* const packet_sender);
31 31
32 virtual ~CastReceiverImpl(); 32 ~CastReceiverImpl() override;
33 33
34 // CastReceiver implementation. 34 // CastReceiver implementation.
35 virtual PacketReceiverCallback packet_receiver() override; 35 PacketReceiverCallback packet_receiver() override;
36 virtual void RequestDecodedAudioFrame( 36 void RequestDecodedAudioFrame(
37 const AudioFrameDecodedCallback& callback) override; 37 const AudioFrameDecodedCallback& callback) override;
38 virtual void RequestEncodedAudioFrame( 38 void RequestEncodedAudioFrame(
39 const ReceiveEncodedFrameCallback& callback) override; 39 const ReceiveEncodedFrameCallback& callback) override;
40 virtual void RequestDecodedVideoFrame( 40 void RequestDecodedVideoFrame(
41 const VideoFrameDecodedCallback& callback) override; 41 const VideoFrameDecodedCallback& callback) override;
42 virtual void RequestEncodedVideoFrame( 42 void RequestEncodedVideoFrame(
43 const ReceiveEncodedFrameCallback& callback) override; 43 const ReceiveEncodedFrameCallback& callback) override;
44 44
45 private: 45 private:
46 // Forwards |packet| to a specific RTP frame receiver, or drops it if SSRC 46 // Forwards |packet| to a specific RTP frame receiver, or drops it if SSRC
47 // does not map to one of the receivers. 47 // does not map to one of the receivers.
48 void DispatchReceivedPacket(scoped_ptr<Packet> packet); 48 void DispatchReceivedPacket(scoped_ptr<Packet> packet);
49 49
50 // Feeds an EncodedFrame into |audio_decoder_|. RequestDecodedAudioFrame() 50 // Feeds an EncodedFrame into |audio_decoder_|. RequestDecodedAudioFrame()
51 // uses this as a callback for RequestEncodedAudioFrame(). 51 // uses this as a callback for RequestEncodedAudioFrame().
52 void DecodeEncodedAudioFrame( 52 void DecodeEncodedAudioFrame(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // images for playback. 113 // images for playback.
114 scoped_ptr<VideoDecoder> video_decoder_; 114 scoped_ptr<VideoDecoder> video_decoder_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(CastReceiverImpl); 116 DISALLOW_COPY_AND_ASSIGN(CastReceiverImpl);
117 }; 117 };
118 118
119 } // namespace cast 119 } // namespace cast
120 } // namespace media 120 } // namespace media
121 121
122 #endif // MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_ 122 #endif // MEDIA_CAST_RECEIVER_CAST_RECEIVER_IMPL_
OLDNEW
« no previous file with comments | « media/cast/receiver/audio_decoder.cc ('k') | media/cast/receiver/frame_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698