| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 20 matching lines...) Expand all Loading... |
| 31 #include <string> | 31 #include <string> |
| 32 | 32 |
| 33 #include "talk/app/webrtc/mediastreaminterface.h" | 33 #include "talk/app/webrtc/mediastreaminterface.h" |
| 34 #include "talk/app/webrtc/peerconnectioninterface.h" | 34 #include "talk/app/webrtc/peerconnectioninterface.h" |
| 35 #include "talk/session/media/channelmanager.h" | 35 #include "talk/session/media/channelmanager.h" |
| 36 #include "webrtc/base/scoped_ptr.h" | 36 #include "webrtc/base/scoped_ptr.h" |
| 37 #include "webrtc/base/thread.h" | 37 #include "webrtc/base/thread.h" |
| 38 | 38 |
| 39 namespace webrtc { | 39 namespace webrtc { |
| 40 | 40 |
| 41 class DtlsIdentityStore; | 41 class DtlsIdentityStoreInterface; |
| 42 | 42 |
| 43 class PeerConnectionFactory : public PeerConnectionFactoryInterface { | 43 class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
| 44 public: | 44 public: |
| 45 virtual void SetOptions(const Options& options) { | 45 virtual void SetOptions(const Options& options) { |
| 46 options_ = options; | 46 options_ = options; |
| 47 } | 47 } |
| 48 | 48 |
| 49 virtual rtc::scoped_refptr<PeerConnectionInterface> | 49 rtc::scoped_refptr<PeerConnectionInterface> |
| 50 CreatePeerConnection( | 50 CreatePeerConnection( |
| 51 const PeerConnectionInterface::RTCConfiguration& configuration, | 51 const PeerConnectionInterface::RTCConfiguration& configuration, |
| 52 const MediaConstraintsInterface* constraints, | 52 const MediaConstraintsInterface* constraints, |
| 53 PortAllocatorFactoryInterface* allocator_factory, | 53 PortAllocatorFactoryInterface* allocator_factory, |
| 54 DTLSIdentityServiceInterface* dtls_identity_service, | 54 DtlsIdentityStoreInterface* dtls_identity_store, |
| 55 PeerConnectionObserver* observer); | 55 PeerConnectionObserver* observer) override; |
| 56 | 56 |
| 57 bool Initialize(); | 57 bool Initialize(); |
| 58 | 58 |
| 59 rtc::scoped_refptr<MediaStreamInterface> | 59 rtc::scoped_refptr<MediaStreamInterface> |
| 60 CreateLocalMediaStream(const std::string& label) override; | 60 CreateLocalMediaStream(const std::string& label) override; |
| 61 | 61 |
| 62 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( | 62 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( |
| 63 const MediaConstraintsInterface* constraints) override; | 63 const MediaConstraintsInterface* constraints) override; |
| 64 | 64 |
| 65 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( | 65 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 rtc::scoped_ptr<cricket::ChannelManager> channel_manager_; | 105 rtc::scoped_ptr<cricket::ChannelManager> channel_manager_; |
| 106 // External Video encoder factory. This can be NULL if the client has not | 106 // External Video encoder factory. This can be NULL if the client has not |
| 107 // injected any. In that case, video engine will use the internal SW encoder. | 107 // injected any. In that case, video engine will use the internal SW encoder. |
| 108 rtc::scoped_ptr<cricket::WebRtcVideoEncoderFactory> | 108 rtc::scoped_ptr<cricket::WebRtcVideoEncoderFactory> |
| 109 video_encoder_factory_; | 109 video_encoder_factory_; |
| 110 // External Video decoder factory. This can be NULL if the client has not | 110 // External Video decoder factory. This can be NULL if the client has not |
| 111 // injected any. In that case, video engine will use the internal SW decoder. | 111 // injected any. In that case, video engine will use the internal SW decoder. |
| 112 rtc::scoped_ptr<cricket::WebRtcVideoDecoderFactory> | 112 rtc::scoped_ptr<cricket::WebRtcVideoDecoderFactory> |
| 113 video_decoder_factory_; | 113 video_decoder_factory_; |
| 114 | 114 |
| 115 rtc::scoped_ptr<webrtc::DtlsIdentityStore> dtls_identity_store_; | 115 rtc::scoped_ptr<webrtc::DtlsIdentityStoreInterface> dtls_identity_store_; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace webrtc | 118 } // namespace webrtc |
| 119 | 119 |
| 120 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_ | 120 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_ |
| OLD | NEW |