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

Side by Side Diff: chrome/renderer/media/cast_rtp_stream.h

Issue 90083002: Cast Extensions API: Major namespace and object renaming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests Created 7 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 | Annotate | Revision Log
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 4
5 #ifndef CHROME_RENDERER_MEDIA_CAST_SEND_TRANSPORT_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
6 #define CHROME_RENDERER_MEDIA_CAST_SEND_TRANSPORT_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
14 14
15 class CastSession; 15 class CastSession;
16 16
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ~CastRtpCaps(); 72 ~CastRtpCaps();
73 }; 73 };
74 74
75 typedef CastRtpCaps CastRtpParams; 75 typedef CastRtpCaps CastRtpParams;
76 76
77 // This object represents a RTP stream that encodes and optionally 77 // This object represents a RTP stream that encodes and optionally
78 // encrypt audio or video data from a WebMediaStreamTrack. 78 // encrypt audio or video data from a WebMediaStreamTrack.
79 // Note that this object does not actually output packets. It allows 79 // Note that this object does not actually output packets. It allows
80 // configuration of encoding and RTP parameters and control such a logical 80 // configuration of encoding and RTP parameters and control such a logical
81 // stream. 81 // stream.
82 class CastSendTransport { 82 class CastRtpStream {
83 public: 83 public:
84 CastSendTransport(const blink::WebMediaStreamTrack& track, 84 CastRtpStream(const blink::WebMediaStreamTrack& track,
85 const scoped_refptr<CastSession>& session); 85 const scoped_refptr<CastSession>& session);
86 ~CastSendTransport(); 86 ~CastRtpStream();
87 87
88 // Return capabilities currently supported by this transport. 88 // Return capabilities currently supported by this transport.
89 CastRtpCaps GetCaps(); 89 CastRtpCaps GetCaps();
90 90
91 // Return parameters set to this transport. 91 // Return parameters set to this transport.
92 CastRtpParams GetParams(); 92 CastRtpParams GetParams();
93 93
94 // Begin encoding of media stream and then submit the encoded streams 94 // Begin encoding of media stream and then submit the encoded streams
95 // to underlying transport. 95 // to underlying transport.
96 void Start(const CastRtpParams& params); 96 void Start(const CastRtpParams& params);
97 97
98 // Stop encoding. 98 // Stop encoding.
99 void Stop(); 99 void Stop();
100 100
101 private: 101 private:
102 // Return true if this track is an audio track. Return false if this 102 // Return true if this track is an audio track. Return false if this
103 // track is a video track. 103 // track is a video track.
104 bool IsAudio() const; 104 bool IsAudio() const;
105 105
106 blink::WebMediaStreamTrack track_; 106 blink::WebMediaStreamTrack track_;
107 const scoped_refptr<CastSession> cast_session_; 107 const scoped_refptr<CastSession> cast_session_;
108 CastRtpParams params_; 108 CastRtpParams params_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(CastSendTransport); 110 DISALLOW_COPY_AND_ASSIGN(CastRtpStream);
111 }; 111 };
112 112
113 #endif // CHROME_RENDERER_MEDIA_CAST_SEND_TRANSPORT_H_ 113 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/webrtc_native_handler.cc ('k') | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698