| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Starts recording an RTC event log. | 117 // Starts recording an RTC event log. |
| 118 virtual void StopRtcEventLog(); | 118 virtual void StopRtcEventLog(); |
| 119 | 119 |
| 120 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); | 120 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); |
| 121 | 121 |
| 122 void EnsureInitialized(); | 122 void EnsureInitialized(); |
| 123 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const; | 123 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const; |
| 124 virtual scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() | 124 virtual scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() |
| 125 const; | 125 const; |
| 126 | 126 |
| 127 // Called by ProcessedLocalAudioSource to have the PeerConnection factory | |
| 128 // create the corresponding WebRtc-internal instance. | |
| 129 virtual scoped_refptr<webrtc::AudioSourceInterface> CreateLocalAudioSource( | |
| 130 const cricket::AudioOptions& options); | |
| 131 | |
| 132 protected: | 127 protected: |
| 133 // Asks the PeerConnection factory to create a Local VideoTrack object with | 128 // Asks the PeerConnection factory to create a Local VideoTrack object with |
| 134 // the video source using |capturer|. | 129 // the video source using |capturer|. |
| 135 virtual scoped_refptr<webrtc::VideoTrackInterface> | 130 virtual scoped_refptr<webrtc::VideoTrackInterface> |
| 136 CreateLocalVideoTrack(const std::string& id, | 131 CreateLocalVideoTrack(const std::string& id, |
| 137 cricket::VideoCapturer* capturer); | 132 cricket::VideoCapturer* capturer); |
| 138 | 133 |
| 139 virtual const scoped_refptr<webrtc::PeerConnectionFactoryInterface>& | 134 virtual const scoped_refptr<webrtc::PeerConnectionFactoryInterface>& |
| 140 GetPcFactory(); | 135 GetPcFactory(); |
| 141 virtual bool PeerConnectionFactoryCreated(); | 136 virtual bool PeerConnectionFactoryCreated(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 rtc::Thread* worker_thread_; | 182 rtc::Thread* worker_thread_; |
| 188 base::Thread chrome_signaling_thread_; | 183 base::Thread chrome_signaling_thread_; |
| 189 base::Thread chrome_worker_thread_; | 184 base::Thread chrome_worker_thread_; |
| 190 | 185 |
| 191 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 186 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 192 }; | 187 }; |
| 193 | 188 |
| 194 } // namespace content | 189 } // namespace content |
| 195 | 190 |
| 196 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 191 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |