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

Side by Side Diff: media/cast/test/utility/in_process_receiver.h

Issue 765643006: Cast: Make receiver use cast_transport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix end2end test Created 6 years 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
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_TEST_IN_PROCESS_RECEIVER_H_ 5 #ifndef MEDIA_CAST_TEST_IN_PROCESS_RECEIVER_H_
6 #define MEDIA_CAST_TEST_IN_PROCESS_RECEIVER_H_ 6 #define MEDIA_CAST_TEST_IN_PROCESS_RECEIVER_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 "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "media/base/audio_bus.h" 11 #include "media/base/audio_bus.h"
12 #include "media/cast/cast_config.h" 12 #include "media/cast/cast_config.h"
13 #include "media/cast/net/cast_transport_config.h" 13 #include "media/cast/net/cast_transport_config.h"
14 #include "media/cast/net/cast_transport_sender.h"
14 #include "net/base/ip_endpoint.h" 15 #include "net/base/ip_endpoint.h"
15 16
16 namespace base { 17 namespace base {
17 class TimeTicks; 18 class TimeTicks;
18 class WaitableEvent; 19 class WaitableEvent;
19 } // namespace base 20 } // namespace base
20 21
21 namespace net { 22 namespace net {
22 class IPEndPoint; 23 class IPEndPoint;
23 } // namespace net 24 } // namespace net
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // argument description and semantics. 94 // argument description and semantics.
94 void GotAudioFrame(scoped_ptr<AudioBus> audio_frame, 95 void GotAudioFrame(scoped_ptr<AudioBus> audio_frame,
95 const base::TimeTicks& playout_time, 96 const base::TimeTicks& playout_time,
96 bool is_continuous); 97 bool is_continuous);
97 void GotVideoFrame(const scoped_refptr<VideoFrame>& video_frame, 98 void GotVideoFrame(const scoped_refptr<VideoFrame>& video_frame,
98 const base::TimeTicks& playout_time, 99 const base::TimeTicks& playout_time,
99 bool is_continuous); 100 bool is_continuous);
100 void PullNextAudioFrame(); 101 void PullNextAudioFrame();
101 void PullNextVideoFrame(); 102 void PullNextVideoFrame();
102 103
104 void ReceivePacket(scoped_ptr<Packet> packet);
105
103 const scoped_refptr<CastEnvironment> cast_environment_; 106 const scoped_refptr<CastEnvironment> cast_environment_;
104 const net::IPEndPoint local_end_point_; 107 const net::IPEndPoint local_end_point_;
105 const net::IPEndPoint remote_end_point_; 108 const net::IPEndPoint remote_end_point_;
106 const FrameReceiverConfig audio_config_; 109 const FrameReceiverConfig audio_config_;
107 const FrameReceiverConfig video_config_; 110 const FrameReceiverConfig video_config_;
108 111
109 scoped_ptr<UdpTransport> transport_; 112 scoped_ptr<CastTransportSender> transport_;
110 scoped_ptr<CastReceiver> cast_receiver_; 113 scoped_ptr<CastReceiver> cast_receiver_;
111 114
112 // NOTE: Weak pointers must be invalidated before all other member variables. 115 // NOTE: Weak pointers must be invalidated before all other member variables.
113 base::WeakPtrFactory<InProcessReceiver> weak_factory_; 116 base::WeakPtrFactory<InProcessReceiver> weak_factory_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(InProcessReceiver); 118 DISALLOW_COPY_AND_ASSIGN(InProcessReceiver);
116 }; 119 };
117 120
118 } // namespace cast 121 } // namespace cast
119 } // namespace media 122 } // namespace media
120 123
121 #endif // MEDIA_CAST_TEST_IN_PROCESS_RECEIVER_H_ 124 #endif // MEDIA_CAST_TEST_IN_PROCESS_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698