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

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

Issue 1380603005: Revert of Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 2 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/app/webrtc/webrtcsession.cc ('k') | talk/session/media/channel.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool SetRtcpMux_w(bool enable, 277 bool SetRtcpMux_w(bool enable,
278 ContentAction action, 278 ContentAction action,
279 ContentSource src, 279 ContentSource src,
280 std::string* error_desc); 280 std::string* error_desc);
281 281
282 // From MessageHandler 282 // From MessageHandler
283 virtual void OnMessage(rtc::Message* pmsg); 283 virtual void OnMessage(rtc::Message* pmsg);
284 284
285 // Handled in derived classes 285 // Handled in derived classes
286 // Get the SRTP ciphers to use for RTP media 286 // Get the SRTP ciphers to use for RTP media
287 virtual void GetSrtpCryptoSuiteNames( 287 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const = 0;
288 std::vector<std::string>* ciphers) const = 0;
289 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor, 288 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor,
290 const std::vector<ConnectionInfo>& infos) = 0; 289 const std::vector<ConnectionInfo>& infos) = 0;
291 290
292 // Helper function for invoking bool-returning methods on the worker thread. 291 // Helper function for invoking bool-returning methods on the worker thread.
293 template <class FunctorT> 292 template <class FunctorT>
294 bool InvokeOnWorker(const FunctorT& functor) { 293 bool InvokeOnWorker(const FunctorT& functor) {
295 return worker_thread_->Invoke<bool>(functor); 294 return worker_thread_->Invoke<bool>(functor);
296 } 295 }
297 296
298 private: 297 private:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 std::string* error_desc); 406 std::string* error_desc);
408 virtual bool SetRemoteContent_w(const MediaContentDescription* content, 407 virtual bool SetRemoteContent_w(const MediaContentDescription* content,
409 ContentAction action, 408 ContentAction action,
410 std::string* error_desc); 409 std::string* error_desc);
411 void HandleEarlyMediaTimeout(); 410 void HandleEarlyMediaTimeout();
412 bool InsertDtmf_w(uint32 ssrc, int event, int duration, int flags); 411 bool InsertDtmf_w(uint32 ssrc, int event, int duration, int flags);
413 bool SetOutputScaling_w(uint32 ssrc, double left, double right); 412 bool SetOutputScaling_w(uint32 ssrc, double left, double right);
414 bool GetStats_w(VoiceMediaInfo* stats); 413 bool GetStats_w(VoiceMediaInfo* stats);
415 414
416 virtual void OnMessage(rtc::Message* pmsg); 415 virtual void OnMessage(rtc::Message* pmsg);
417 virtual void GetSrtpCryptoSuiteNames(std::vector<std::string>* ciphers) const; 416 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const;
418 virtual void OnConnectionMonitorUpdate( 417 virtual void OnConnectionMonitorUpdate(
419 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); 418 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos);
420 virtual void OnMediaMonitorUpdate( 419 virtual void OnMediaMonitorUpdate(
421 VoiceMediaChannel* media_channel, const VoiceMediaInfo& info); 420 VoiceMediaChannel* media_channel, const VoiceMediaInfo& info);
422 void OnAudioMonitorUpdate(AudioMonitor* monitor, const AudioInfo& info); 421 void OnAudioMonitorUpdate(AudioMonitor* monitor, const AudioInfo& info);
423 void OnVoiceChannelError(uint32 ssrc, VoiceMediaChannel::Error error); 422 void OnVoiceChannelError(uint32 ssrc, VoiceMediaChannel::Error error);
424 void SendLastMediaError(); 423 void SendLastMediaError();
425 void OnSrtpError(uint32 ssrc, SrtpFilter::Mode mode, SrtpFilter::Error error); 424 void OnSrtpError(uint32 ssrc, SrtpFilter::Mode mode, SrtpFilter::Error error);
426 425
427 static const int kEarlyMediaTimeout = 1000; 426 static const int kEarlyMediaTimeout = 1000;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 bool ApplyViewRequest_w(const ViewRequest& request); 503 bool ApplyViewRequest_w(const ViewRequest& request);
505 504
506 bool AddScreencast_w(uint32 ssrc, VideoCapturer* capturer); 505 bool AddScreencast_w(uint32 ssrc, VideoCapturer* capturer);
507 bool RemoveScreencast_w(uint32 ssrc); 506 bool RemoveScreencast_w(uint32 ssrc);
508 void OnScreencastWindowEvent_s(uint32 ssrc, rtc::WindowEvent we); 507 void OnScreencastWindowEvent_s(uint32 ssrc, rtc::WindowEvent we);
509 bool IsScreencasting_w() const; 508 bool IsScreencasting_w() const;
510 void GetScreencastDetails_w(ScreencastDetailsData* d) const; 509 void GetScreencastDetails_w(ScreencastDetailsData* d) const;
511 bool GetStats_w(VideoMediaInfo* stats); 510 bool GetStats_w(VideoMediaInfo* stats);
512 511
513 virtual void OnMessage(rtc::Message* pmsg); 512 virtual void OnMessage(rtc::Message* pmsg);
514 virtual void GetSrtpCryptoSuiteNames(std::vector<std::string>* ciphers) const; 513 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const;
515 virtual void OnConnectionMonitorUpdate( 514 virtual void OnConnectionMonitorUpdate(
516 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); 515 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos);
517 virtual void OnMediaMonitorUpdate( 516 virtual void OnMediaMonitorUpdate(
518 VideoMediaChannel* media_channel, const VideoMediaInfo& info); 517 VideoMediaChannel* media_channel, const VideoMediaInfo& info);
519 virtual void OnScreencastWindowEvent(uint32 ssrc, 518 virtual void OnScreencastWindowEvent(uint32 ssrc,
520 rtc::WindowEvent event); 519 rtc::WindowEvent event);
521 virtual void OnStateChange(VideoCapturer* capturer, CaptureState ev); 520 virtual void OnStateChange(VideoCapturer* capturer, CaptureState ev);
522 bool GetLocalSsrc(const VideoCapturer* capturer, uint32* ssrc); 521 bool GetLocalSsrc(const VideoCapturer* capturer, uint32* ssrc);
523 522
524 void OnVideoChannelError(uint32 ssrc, VideoMediaChannel::Error error); 523 void OnVideoChannelError(uint32 ssrc, VideoMediaChannel::Error error);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 virtual bool SetLocalContent_w(const MediaContentDescription* content, 628 virtual bool SetLocalContent_w(const MediaContentDescription* content,
630 ContentAction action, 629 ContentAction action,
631 std::string* error_desc); 630 std::string* error_desc);
632 virtual bool SetRemoteContent_w(const MediaContentDescription* content, 631 virtual bool SetRemoteContent_w(const MediaContentDescription* content,
633 ContentAction action, 632 ContentAction action,
634 std::string* error_desc); 633 std::string* error_desc);
635 virtual void ChangeState(); 634 virtual void ChangeState();
636 virtual bool WantsPacket(bool rtcp, rtc::Buffer* packet); 635 virtual bool WantsPacket(bool rtcp, rtc::Buffer* packet);
637 636
638 virtual void OnMessage(rtc::Message* pmsg); 637 virtual void OnMessage(rtc::Message* pmsg);
639 virtual void GetSrtpCryptoSuiteNames(std::vector<std::string>* ciphers) const; 638 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const;
640 virtual void OnConnectionMonitorUpdate( 639 virtual void OnConnectionMonitorUpdate(
641 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); 640 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos);
642 virtual void OnMediaMonitorUpdate( 641 virtual void OnMediaMonitorUpdate(
643 DataMediaChannel* media_channel, const DataMediaInfo& info); 642 DataMediaChannel* media_channel, const DataMediaInfo& info);
644 virtual bool ShouldSetupDtlsSrtp() const; 643 virtual bool ShouldSetupDtlsSrtp() const;
645 void OnDataReceived( 644 void OnDataReceived(
646 const ReceiveDataParams& params, const char* data, size_t len); 645 const ReceiveDataParams& params, const char* data, size_t len);
647 void OnDataChannelError(uint32 ssrc, DataMediaChannel::Error error); 646 void OnDataChannelError(uint32 ssrc, DataMediaChannel::Error error);
648 void OnDataChannelReadyToSend(bool writable); 647 void OnDataChannelReadyToSend(bool writable);
649 void OnSrtpError(uint32 ssrc, SrtpFilter::Mode mode, SrtpFilter::Error error); 648 void OnSrtpError(uint32 ssrc, SrtpFilter::Mode mode, SrtpFilter::Error error);
650 void OnStreamClosedRemotely(uint32 sid); 649 void OnStreamClosedRemotely(uint32 sid);
651 650
652 rtc::scoped_ptr<DataMediaMonitor> media_monitor_; 651 rtc::scoped_ptr<DataMediaMonitor> media_monitor_;
653 // TODO(pthatcher): Make a separate SctpDataChannel and 652 // TODO(pthatcher): Make a separate SctpDataChannel and
654 // RtpDataChannel instead of using this. 653 // RtpDataChannel instead of using this.
655 DataChannelType data_channel_type_; 654 DataChannelType data_channel_type_;
656 bool ready_to_send_data_; 655 bool ready_to_send_data_;
657 656
658 // Last DataSendParameters sent down to the media_channel() via 657 // Last DataSendParameters sent down to the media_channel() via
659 // SetSendParameters. 658 // SetSendParameters.
660 DataSendParameters last_send_params_; 659 DataSendParameters last_send_params_;
661 // Last DataRecvParameters sent down to the media_channel() via 660 // Last DataRecvParameters sent down to the media_channel() via
662 // SetRecvParameters. 661 // SetRecvParameters.
663 DataRecvParameters last_recv_params_; 662 DataRecvParameters last_recv_params_;
664 }; 663 };
665 664
666 } // namespace cricket 665 } // namespace cricket
667 666
668 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ 667 #endif // TALK_SESSION_MEDIA_CHANNEL_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/webrtcsession.cc ('k') | talk/session/media/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698