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

Side by Side Diff: talk/session/media/channelmanager.h

Issue 1528843005: Add support for GCM cipher suites from RFC 7714. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Indicates whether any channels exist. 125 // Indicates whether any channels exist.
126 bool has_channels() const { 126 bool has_channels() const {
127 return (!voice_channels_.empty() || !video_channels_.empty()); 127 return (!voice_channels_.empty() || !video_channels_.empty());
128 } 128 }
129 129
130 bool GetOutputVolume(int* level); 130 bool GetOutputVolume(int* level);
131 bool SetOutputVolume(int level); 131 bool SetOutputVolume(int level);
132 // RTX will be enabled/disabled in engines that support it. The supporting 132 // RTX will be enabled/disabled in engines that support it. The supporting
133 // engines will start offering an RTX codec. Must be called before Init(). 133 // engines will start offering an RTX codec. Must be called before Init().
134 bool SetVideoRtxEnabled(bool enable); 134 bool SetVideoRtxEnabled(bool enable);
135 bool SetCryptoOptions(const rtc::CryptoOptions& crypto_options);
135 136
136 // Starts/stops the local microphone and enables polling of the input level. 137 // Starts/stops the local microphone and enables polling of the input level.
137 bool capturing() const { return capturing_; } 138 bool capturing() const { return capturing_; }
138 139
139 // Gets capturer's supported formats in a thread safe manner 140 // Gets capturer's supported formats in a thread safe manner
140 std::vector<cricket::VideoFormat> GetSupportedFormats( 141 std::vector<cricket::VideoFormat> GetSupportedFormats(
141 VideoCapturer* capturer) const; 142 VideoCapturer* capturer) const;
142 // The following are done in the new "CaptureManager" style that 143 // The following are done in the new "CaptureManager" style that
143 // all local video capturers, processors, and managers should move to. 144 // all local video capturers, processors, and managers should move to.
144 // TODO(pthatcher): Make methods nicer by having start return a handle that 145 // TODO(pthatcher): Make methods nicer by having start return a handle that
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 rtc::Thread* main_thread_; 225 rtc::Thread* main_thread_;
225 rtc::Thread* worker_thread_; 226 rtc::Thread* worker_thread_;
226 227
227 VoiceChannels voice_channels_; 228 VoiceChannels voice_channels_;
228 VideoChannels video_channels_; 229 VideoChannels video_channels_;
229 DataChannels data_channels_; 230 DataChannels data_channels_;
230 231
231 int audio_output_volume_; 232 int audio_output_volume_;
232 VideoRenderer* local_renderer_; 233 VideoRenderer* local_renderer_;
233 bool enable_rtx_; 234 bool enable_rtx_;
235 rtc::CryptoOptions crypto_options_;
234 236
235 bool capturing_; 237 bool capturing_;
236 }; 238 };
237 239
238 } // namespace cricket 240 } // namespace cricket
239 241
240 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ 242 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698