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

Side by Side Diff: talk/media/webrtc/webrtcvoiceengine.h

Issue 1229283003: Refactor the relationship between BaseChannel and MediaChannel so that we send over all the paramet… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: merge Created 5 years, 4 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 | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | talk/media/webrtc/webrtcvoiceengine.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 /* 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // WebRtc Voice Engine. 279 // WebRtc Voice Engine.
280 class WebRtcVoiceMediaChannel : public VoiceMediaChannel, 280 class WebRtcVoiceMediaChannel : public VoiceMediaChannel,
281 public webrtc::Transport { 281 public webrtc::Transport {
282 public: 282 public:
283 explicit WebRtcVoiceMediaChannel(WebRtcVoiceEngine *engine); 283 explicit WebRtcVoiceMediaChannel(WebRtcVoiceEngine *engine);
284 ~WebRtcVoiceMediaChannel() override; 284 ~WebRtcVoiceMediaChannel() override;
285 285
286 int voe_channel() const { return voe_channel_; } 286 int voe_channel() const { return voe_channel_; }
287 bool valid() const { return voe_channel_ != -1; } 287 bool valid() const { return voe_channel_ != -1; }
288 288
289 bool SetSendParameters(const AudioSendParameters& params) override;
290 bool SetRecvParameters(const AudioRecvParameters& params) override;
289 bool SetOptions(const AudioOptions& options) override; 291 bool SetOptions(const AudioOptions& options) override;
290 bool GetOptions(AudioOptions* options) const override { 292 bool GetOptions(AudioOptions* options) const override {
291 *options = options_; 293 *options = options_;
292 return true; 294 return true;
293 } 295 }
294 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) override; 296 bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) override;
295 bool SetSendCodecs(const std::vector<AudioCodec>& codecs) override; 297 bool SetSendCodecs(const std::vector<AudioCodec>& codecs) override;
296 bool SetRecvRtpHeaderExtensions( 298 bool SetRecvRtpHeaderExtensions(
297 const std::vector<RtpHeaderExtension>& extensions) override; 299 const std::vector<RtpHeaderExtension>& extensions) override;
298 bool SetSendRtpHeaderExtensions( 300 bool SetSendRtpHeaderExtensions(
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 454 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
453 455
454 // Do not lock this on the VoE media processor thread; potential for deadlock 456 // Do not lock this on the VoE media processor thread; potential for deadlock
455 // exists. 457 // exists.
456 mutable rtc::CriticalSection receive_channels_cs_; 458 mutable rtc::CriticalSection receive_channels_cs_;
457 }; 459 };
458 460
459 } // namespace cricket 461 } // namespace cricket
460 462
461 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ 463 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | talk/media/webrtc/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698