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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 webrtc::MediaStreamTrackInterface* native_track, | 127 webrtc::MediaStreamTrackInterface* native_track, |
128 const blink::WebMediaStreamTrack& webkit_track, | 128 const blink::WebMediaStreamTrack& webkit_track, |
129 bool is_local_track); | 129 bool is_local_track); |
130 | 130 |
131 scoped_refptr<base::MessageLoopProxy> GetWebRtcWorkerThread() const; | 131 scoped_refptr<base::MessageLoopProxy> GetWebRtcWorkerThread() const; |
132 | 132 |
133 // AecDumpMessageFilter::AecDumpDelegate implementation. | 133 // AecDumpMessageFilter::AecDumpDelegate implementation. |
134 // TODO(xians): Remove when option to disable audio track processing is | 134 // TODO(xians): Remove when option to disable audio track processing is |
135 // removed. | 135 // removed. |
136 virtual void OnAecDumpFile( | 136 virtual void OnAecDumpFile( |
137 const IPC::PlatformFileForTransit& file_handle) OVERRIDE; | 137 const IPC::PlatformFileForTransit& file_handle) override; |
138 virtual void OnDisableAecDump() OVERRIDE; | 138 virtual void OnDisableAecDump() override; |
139 virtual void OnIpcClosing() OVERRIDE; | 139 virtual void OnIpcClosing() override; |
140 | 140 |
141 protected: | 141 protected: |
142 // Asks the PeerConnection factory to create a Local Audio Source. | 142 // Asks the PeerConnection factory to create a Local Audio Source. |
143 virtual scoped_refptr<webrtc::AudioSourceInterface> | 143 virtual scoped_refptr<webrtc::AudioSourceInterface> |
144 CreateLocalAudioSource( | 144 CreateLocalAudioSource( |
145 const webrtc::MediaConstraintsInterface* constraints); | 145 const webrtc::MediaConstraintsInterface* constraints); |
146 | 146 |
147 // Creates a media::AudioCapturerSource with an implementation that is | 147 // Creates a media::AudioCapturerSource with an implementation that is |
148 // specific for a WebAudio source. The created WebAudioCapturerSource | 148 // specific for a WebAudio source. The created WebAudioCapturerSource |
149 // instance will function as audio source instead of the default | 149 // instance will function as audio source instead of the default |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 rtc::Thread* signaling_thread_; | 209 rtc::Thread* signaling_thread_; |
210 rtc::Thread* worker_thread_; | 210 rtc::Thread* worker_thread_; |
211 base::Thread chrome_worker_thread_; | 211 base::Thread chrome_worker_thread_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 213 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 218 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
OLD | NEW |