| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 static void AddNativeAudioTrackToBlinkTrack( | 126 static void AddNativeAudioTrackToBlinkTrack( |
| 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 void OnAecDumpFile(const IPC::PlatformFileForTransit& file_handle) override; |
| 137 const IPC::PlatformFileForTransit& file_handle) override; | 137 void OnDisableAecDump() override; |
| 138 virtual void OnDisableAecDump() override; | 138 void OnIpcClosing() override; |
| 139 virtual void OnIpcClosing() override; | |
| 140 | 139 |
| 141 protected: | 140 protected: |
| 142 // Asks the PeerConnection factory to create a Local Audio Source. | 141 // Asks the PeerConnection factory to create a Local Audio Source. |
| 143 virtual scoped_refptr<webrtc::AudioSourceInterface> | 142 virtual scoped_refptr<webrtc::AudioSourceInterface> |
| 144 CreateLocalAudioSource( | 143 CreateLocalAudioSource( |
| 145 const webrtc::MediaConstraintsInterface* constraints); | 144 const webrtc::MediaConstraintsInterface* constraints); |
| 146 | 145 |
| 147 // Creates a media::AudioCapturerSource with an implementation that is | 146 // Creates a media::AudioCapturerSource with an implementation that is |
| 148 // specific for a WebAudio source. The created WebAudioCapturerSource | 147 // specific for a WebAudio source. The created WebAudioCapturerSource |
| 149 // instance will function as audio source instead of the default | 148 // 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_; | 208 rtc::Thread* signaling_thread_; |
| 210 rtc::Thread* worker_thread_; | 209 rtc::Thread* worker_thread_; |
| 211 base::Thread chrome_worker_thread_; | 210 base::Thread chrome_worker_thread_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 212 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 } // namespace content | 215 } // namespace content |
| 217 | 216 |
| 218 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 217 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |