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

Side by Side Diff: media/cast/cast_sender_impl.h

Issue 555563003: Cast: Flow hw encoder initialization error to extensions API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed compile Created 6 years, 3 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/cast_defines.h ('k') | media/cast/cast_sender_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_ 4 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_
5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_ 5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "media/cast/cast_config.h" 9 #include "media/cast/cast_config.h"
10 #include "media/cast/cast_defines.h" 10 #include "media/cast/cast_defines.h"
(...skipping 29 matching lines...) Expand all
40 virtual void SetTargetPlayoutDelay( 40 virtual void SetTargetPlayoutDelay(
41 base::TimeDelta new_target_playout_delay) OVERRIDE; 41 base::TimeDelta new_target_playout_delay) OVERRIDE;
42 42
43 virtual ~CastSenderImpl(); 43 virtual ~CastSenderImpl();
44 44
45 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE; 45 virtual scoped_refptr<AudioFrameInput> audio_frame_input() OVERRIDE;
46 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE; 46 virtual scoped_refptr<VideoFrameInput> video_frame_input() OVERRIDE;
47 47
48 private: 48 private:
49 void ReceivedPacket(scoped_ptr<Packet> packet); 49 void ReceivedPacket(scoped_ptr<Packet> packet);
50 void OnVideoInitialized(
51 const CastInitializationCallback& initialization_cb,
52 media::cast::CastInitializationStatus result);
50 53
51 CastInitializationCallback initialization_callback_; 54 CastInitializationCallback initialization_callback_;
52 scoped_ptr<AudioSender> audio_sender_; 55 scoped_ptr<AudioSender> audio_sender_;
53 scoped_ptr<VideoSender> video_sender_; 56 scoped_ptr<VideoSender> video_sender_;
54 scoped_refptr<AudioFrameInput> audio_frame_input_; 57 scoped_refptr<AudioFrameInput> audio_frame_input_;
55 scoped_refptr<VideoFrameInput> video_frame_input_; 58 scoped_refptr<VideoFrameInput> video_frame_input_;
56 scoped_refptr<CastEnvironment> cast_environment_; 59 scoped_refptr<CastEnvironment> cast_environment_;
57 // The transport sender is owned by the owner of the CastSender, and should be 60 // The transport sender is owned by the owner of the CastSender, and should be
58 // valid throughout the lifetime of the CastSender. 61 // valid throughout the lifetime of the CastSender.
59 CastTransportSender* const transport_sender_; 62 CastTransportSender* const transport_sender_;
60 uint32 ssrc_of_audio_sender_;
61 uint32 ssrc_of_video_sender_;
62 63
63 // NOTE: Weak pointers must be invalidated before all other member variables. 64 // NOTE: Weak pointers must be invalidated before all other member variables.
64 base::WeakPtrFactory<CastSenderImpl> weak_factory_; 65 base::WeakPtrFactory<CastSenderImpl> weak_factory_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl); 67 DISALLOW_COPY_AND_ASSIGN(CastSenderImpl);
67 }; 68 };
68 69
69 } // namespace cast 70 } // namespace cast
70 } // namespace media 71 } // namespace media
71 72
72 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ 73 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_
OLDNEW
« no previous file with comments | « media/cast/cast_defines.h ('k') | media/cast/cast_sender_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698