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

Side by Side Diff: talk/app/webrtc/webrtcsession.h

Issue 1590333004: Making WebRtcSession fire a destroyed signal. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 2012 Google Inc. 3 * Copyright 2012 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 321
322 // Called when voice_channel_, video_channel_ and data_channel_ are created 322 // Called when voice_channel_, video_channel_ and data_channel_ are created
323 // and destroyed. As a result of, for example, setting a new description. 323 // and destroyed. As a result of, for example, setting a new description.
324 sigslot::signal0<> SignalVoiceChannelCreated; 324 sigslot::signal0<> SignalVoiceChannelCreated;
325 sigslot::signal0<> SignalVoiceChannelDestroyed; 325 sigslot::signal0<> SignalVoiceChannelDestroyed;
326 sigslot::signal0<> SignalVideoChannelCreated; 326 sigslot::signal0<> SignalVideoChannelCreated;
327 sigslot::signal0<> SignalVideoChannelDestroyed; 327 sigslot::signal0<> SignalVideoChannelDestroyed;
328 sigslot::signal0<> SignalDataChannelCreated; 328 sigslot::signal0<> SignalDataChannelCreated;
329 sigslot::signal0<> SignalDataChannelDestroyed; 329 sigslot::signal0<> SignalDataChannelDestroyed;
330 // Called when the whole session is destroyed.
331 sigslot::signal0<> SignalDestroyed;
330 332
331 // Called when a valid data channel OPEN message is received. 333 // Called when a valid data channel OPEN message is received.
332 // std::string represents the data channel label. 334 // std::string represents the data channel label.
333 sigslot::signal2<const std::string&, const InternalDataChannelInit&> 335 sigslot::signal2<const std::string&, const InternalDataChannelInit&>
334 SignalDataChannelOpenMessage; 336 SignalDataChannelOpenMessage;
335 337
336 private: 338 private:
337 // Indicates the type of SessionDescription in a call to SetLocalDescription 339 // Indicates the type of SessionDescription in a call to SetLocalDescription
338 // and SetRemoteDescription. 340 // and SetRemoteDescription.
339 enum Action { 341 enum Action {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 PeerConnectionInterface::BundlePolicy bundle_policy_; 516 PeerConnectionInterface::BundlePolicy bundle_policy_;
515 517
516 // Declares the RTCP mux policy for the WebRTCSession. 518 // Declares the RTCP mux policy for the WebRTCSession.
517 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; 519 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_;
518 520
519 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); 521 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession);
520 }; 522 };
521 } // namespace webrtc 523 } // namespace webrtc
522 524
523 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ 525 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698