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

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

Issue 121543003: Set AES key and IV mask to CastSender (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 11 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 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_RTP_STREAM_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Number of audio channels. 49 // Number of audio channels.
50 int channels; 50 int channels;
51 51
52 // Width and height of the video content. 52 // Width and height of the video content.
53 int width; 53 int width;
54 int height; 54 int height;
55 55
56 // Name of the codec used. 56 // Name of the codec used.
57 std::string codec_name; 57 std::string codec_name;
58 58
59 // AES encryption key.
60 std::string aes_key;
61
62 // AES encryption IV mask.
63 std::string aes_iv_mask;
64
59 // List of codec specific parameters. 65 // List of codec specific parameters.
60 std::vector<CastCodecSpecificParams> codec_specific_params; 66 std::vector<CastCodecSpecificParams> codec_specific_params;
61 67
62 CastRtpPayloadParams(); 68 CastRtpPayloadParams();
63 ~CastRtpPayloadParams(); 69 ~CastRtpPayloadParams();
64 }; 70 };
65 71
66 // Defines the capabilities of the transport. 72 // Defines the capabilities of the transport.
67 struct CastRtpCaps { 73 struct CastRtpCaps {
68 // Defines a list of supported payloads. 74 // Defines a list of supported payloads.
69 std::vector<CastRtpPayloadParams> payloads; 75 std::vector<CastRtpPayloadParams> payloads;
70 76
71 // Names of supported RTCP features. 77 // Names of supported RTCP features.
72 std::vector<std::string> rtcp_features; 78 std::vector<std::string> rtcp_features;
73 79
74 // Names of supported FEC (Forward Error Correction) mechanisms.
75 std::vector<std::string> fec_mechanisms;
76
77 CastRtpCaps(); 80 CastRtpCaps();
78 ~CastRtpCaps(); 81 ~CastRtpCaps();
79 }; 82 };
80 83
81 typedef CastRtpCaps CastRtpParams; 84 typedef CastRtpCaps CastRtpParams;
82 85
83 // This object represents a RTP stream that encodes and optionally 86 // This object represents a RTP stream that encodes and optionally
84 // encrypt audio or video data from a WebMediaStreamTrack. 87 // encrypt audio or video data from a WebMediaStreamTrack.
85 // Note that this object does not actually output packets. It allows 88 // Note that this object does not actually output packets. It allows
86 // configuration of encoding and RTP parameters and control such a logical 89 // configuration of encoding and RTP parameters and control such a logical
(...skipping 25 matching lines...) Expand all
112 blink::WebMediaStreamTrack track_; 115 blink::WebMediaStreamTrack track_;
113 const scoped_refptr<CastSession> cast_session_; 116 const scoped_refptr<CastSession> cast_session_;
114 scoped_ptr<CastAudioSink> audio_sink_; 117 scoped_ptr<CastAudioSink> audio_sink_;
115 scoped_ptr<CastVideoSink> video_sink_; 118 scoped_ptr<CastVideoSink> video_sink_;
116 CastRtpParams params_; 119 CastRtpParams params_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); 121 DISALLOW_COPY_AND_ASSIGN(CastRtpStream);
119 }; 122 };
120 123
121 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 124 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_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