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

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

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trying to get iOS to compile 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
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> 43 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl>
44 RefCountedDtlsIdentityStore; 44 RefCountedDtlsIdentityStore;
45 45
46 class PeerConnectionFactory : public PeerConnectionFactoryInterface { 46 class PeerConnectionFactory : public PeerConnectionFactoryInterface {
47 public: 47 public:
48 virtual void SetOptions(const Options& options) { 48 virtual void SetOptions(const Options& options) {
49 options_ = options; 49 options_ = options;
50 } 50 }
51 51
52 // webrtc::PeerConnectionFactoryInterface override; 52 // webrtc::PeerConnectionFactoryInterface override;
53 rtc::scoped_refptr<PeerConnectionInterface> 53 virtual rtc::scoped_refptr<PeerConnectionInterface>
Henrik Grunell WebRTC 2015/08/12 14:46:29 Remove virtual, it's implied from override.
hbos 2015/08/14 14:09:39 Done.
54 CreatePeerConnection( 54 CreatePeerConnection(
55 const PeerConnectionInterface::RTCConfiguration& configuration, 55 const PeerConnectionInterface::RTCConfiguration& configuration,
56 const MediaConstraintsInterface* constraints, 56 const MediaConstraintsInterface* constraints,
57 PortAllocatorFactoryInterface* allocator_factory, 57 PortAllocatorFactoryInterface* allocator_factory,
58 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, 58 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store,
59 PeerConnectionObserver* observer) override; 59 PeerConnectionObserver* observer) override;
60 60
61 virtual rtc::scoped_refptr<PeerConnectionInterface>
62 CreatePeerConnection(
63 const PeerConnectionInterface::RTCConfiguration& configuration,
64 const MediaConstraintsInterface* constraints,
65 PortAllocatorFactoryInterface* allocator_factory,
66 const rtc::scoped_refptr<DtlsCertificate>& certificate,
67 PeerConnectionObserver* observer) override;
68
61 bool Initialize(); 69 bool Initialize();
62 70
63 rtc::scoped_refptr<MediaStreamInterface> 71 rtc::scoped_refptr<MediaStreamInterface>
64 CreateLocalMediaStream(const std::string& label) override; 72 CreateLocalMediaStream(const std::string& label) override;
65 73
66 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( 74 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource(
67 const MediaConstraintsInterface* constraints) override; 75 const MediaConstraintsInterface* constraints) override;
68 76
69 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( 77 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource(
70 cricket::VideoCapturer* capturer, 78 cricket::VideoCapturer* capturer,
(...skipping 18 matching lines...) Expand all
89 PeerConnectionFactory(); 97 PeerConnectionFactory();
90 PeerConnectionFactory( 98 PeerConnectionFactory(
91 rtc::Thread* worker_thread, 99 rtc::Thread* worker_thread,
92 rtc::Thread* signaling_thread, 100 rtc::Thread* signaling_thread,
93 AudioDeviceModule* default_adm, 101 AudioDeviceModule* default_adm,
94 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, 102 cricket::WebRtcVideoEncoderFactory* video_encoder_factory,
95 cricket::WebRtcVideoDecoderFactory* video_decoder_factory); 103 cricket::WebRtcVideoDecoderFactory* video_decoder_factory);
96 virtual ~PeerConnectionFactory(); 104 virtual ~PeerConnectionFactory();
97 105
98 private: 106 private:
107 PortAllocatorFactoryInterface* CreatePeerConnectionCommon(
Henrik Grunell WebRTC 2015/08/12 14:46:29 Nit: I think ...Internal() is a slightly better na
hbos 2015/08/14 14:09:39 Acknowledged.
108 PortAllocatorFactoryInterface* allocator_factory);
99 cricket::MediaEngineInterface* CreateMediaEngine_w(); 109 cricket::MediaEngineInterface* CreateMediaEngine_w();
100 110
101 bool owns_ptrs_; 111 bool owns_ptrs_;
102 bool wraps_current_thread_; 112 bool wraps_current_thread_;
103 rtc::Thread* signaling_thread_; 113 rtc::Thread* signaling_thread_;
104 rtc::Thread* worker_thread_; 114 rtc::Thread* worker_thread_;
105 Options options_; 115 Options options_;
106 rtc::scoped_refptr<PortAllocatorFactoryInterface> default_allocator_factory_; 116 rtc::scoped_refptr<PortAllocatorFactoryInterface> default_allocator_factory_;
107 // External Audio device used for audio playback. 117 // External Audio device used for audio playback.
108 rtc::scoped_refptr<AudioDeviceModule> default_adm_; 118 rtc::scoped_refptr<AudioDeviceModule> default_adm_;
109 rtc::scoped_ptr<cricket::ChannelManager> channel_manager_; 119 rtc::scoped_ptr<cricket::ChannelManager> channel_manager_;
110 // External Video encoder factory. This can be NULL if the client has not 120 // External Video encoder factory. This can be NULL if the client has not
111 // injected any. In that case, video engine will use the internal SW encoder. 121 // injected any. In that case, video engine will use the internal SW encoder.
112 rtc::scoped_ptr<cricket::WebRtcVideoEncoderFactory> 122 rtc::scoped_ptr<cricket::WebRtcVideoEncoderFactory>
113 video_encoder_factory_; 123 video_encoder_factory_;
114 // External Video decoder factory. This can be NULL if the client has not 124 // External Video decoder factory. This can be NULL if the client has not
115 // injected any. In that case, video engine will use the internal SW decoder. 125 // injected any. In that case, video engine will use the internal SW decoder.
116 rtc::scoped_ptr<cricket::WebRtcVideoDecoderFactory> 126 rtc::scoped_ptr<cricket::WebRtcVideoDecoderFactory>
117 video_decoder_factory_; 127 video_decoder_factory_;
118 128
119 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; 129 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_;
120 }; 130 };
121 131
122 } // namespace webrtc 132 } // namespace webrtc
123 133
124 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_ 134 #endif // TALK_APP_WEBRTC_PEERCONNECTIONFACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698