OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "talk/app/webrtc/datachannel.h" | 33 #include "talk/app/webrtc/datachannel.h" |
34 #include "talk/app/webrtc/dtmfsender.h" | 34 #include "talk/app/webrtc/dtmfsender.h" |
35 #include "talk/app/webrtc/mediastreamprovider.h" | 35 #include "talk/app/webrtc/mediastreamprovider.h" |
36 #include "talk/app/webrtc/peerconnectioninterface.h" | 36 #include "talk/app/webrtc/peerconnectioninterface.h" |
37 #include "talk/app/webrtc/statstypes.h" | 37 #include "talk/app/webrtc/statstypes.h" |
38 #include "talk/media/base/mediachannel.h" | 38 #include "talk/media/base/mediachannel.h" |
39 #include "webrtc/p2p/base/session.h" | 39 #include "webrtc/p2p/base/session.h" |
40 #include "talk/session/media/mediasession.h" | 40 #include "talk/session/media/mediasession.h" |
41 #include "webrtc/base/sigslot.h" | 41 #include "webrtc/base/sigslot.h" |
| 42 #include "webrtc/base/sslidentity.h" |
42 #include "webrtc/base/thread.h" | 43 #include "webrtc/base/thread.h" |
43 | 44 |
44 namespace cricket { | 45 namespace cricket { |
45 | 46 |
46 class BaseChannel; | 47 class BaseChannel; |
47 class ChannelManager; | 48 class ChannelManager; |
48 class DataChannel; | 49 class DataChannel; |
49 class StatsReport; | 50 class StatsReport; |
50 class Transport; | 51 class Transport; |
51 class VideoCapturer; | 52 class VideoCapturer; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 WebRtcSession(cricket::ChannelManager* channel_manager, | 114 WebRtcSession(cricket::ChannelManager* channel_manager, |
114 rtc::Thread* signaling_thread, | 115 rtc::Thread* signaling_thread, |
115 rtc::Thread* worker_thread, | 116 rtc::Thread* worker_thread, |
116 cricket::PortAllocator* port_allocator, | 117 cricket::PortAllocator* port_allocator, |
117 MediaStreamSignaling* mediastream_signaling); | 118 MediaStreamSignaling* mediastream_signaling); |
118 virtual ~WebRtcSession(); | 119 virtual ~WebRtcSession(); |
119 | 120 |
120 bool Initialize( | 121 bool Initialize( |
121 const PeerConnectionFactoryInterface::Options& options, | 122 const PeerConnectionFactoryInterface::Options& options, |
122 const MediaConstraintsInterface* constraints, | 123 const MediaConstraintsInterface* constraints, |
123 DTLSIdentityServiceInterface* dtls_identity_service, | 124 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
124 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); | 125 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); |
125 // Deletes the voice, video and data channel and changes the session state | 126 // Deletes the voice, video and data channel and changes the session state |
126 // to STATE_RECEIVEDTERMINATE. | 127 // to STATE_RECEIVEDTERMINATE. |
127 void Terminate(); | 128 void Terminate(); |
128 | 129 |
129 void RegisterIceObserver(IceObserver* observer) { | 130 void RegisterIceObserver(IceObserver* observer) { |
130 ice_observer_ = observer; | 131 ice_observer_ = observer; |
131 } | 132 } |
132 | 133 |
133 virtual cricket::VoiceChannel* voice_channel() { | 134 virtual cricket::VoiceChannel* voice_channel() { |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 PeerConnectionInterface::BundlePolicy bundle_policy_; | 415 PeerConnectionInterface::BundlePolicy bundle_policy_; |
415 | 416 |
416 // Declares the RTCP mux policy for the WebRTCSession. | 417 // Declares the RTCP mux policy for the WebRTCSession. |
417 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 418 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
418 | 419 |
419 DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 420 DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
420 }; | 421 }; |
421 } // namespace webrtc | 422 } // namespace webrtc |
422 | 423 |
423 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ | 424 #endif // TALK_APP_WEBRTC_WEBRTCSESSION_H_ |
OLD | NEW |