| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 webrtc::SdpParseError* error); | 107 webrtc::SdpParseError* error); |
| 108 | 108 |
| 109 // Creates a libjingle representation of an ice candidate. | 109 // Creates a libjingle representation of an ice candidate. |
| 110 virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 110 virtual webrtc::IceCandidateInterface* CreateIceCandidate( |
| 111 const std::string& sdp_mid, | 111 const std::string& sdp_mid, |
| 112 int sdp_mline_index, | 112 int sdp_mline_index, |
| 113 const std::string& sdp); | 113 const std::string& sdp); |
| 114 | 114 |
| 115 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); | 115 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); |
| 116 | 116 |
| 117 // Stop the audio source for local audio tracks. |
| 118 // TODO(xians): Remove this function if each audio track takes care of their |
| 119 // own source. |
| 120 void StopLocalAudioSource(const WebKit::WebMediaStream& description); |
| 121 |
| 117 protected: | 122 protected: |
| 118 // Asks the PeerConnection factory to create a Local MediaStream object. | 123 // Asks the PeerConnection factory to create a Local MediaStream object. |
| 119 virtual scoped_refptr<webrtc::MediaStreamInterface> | 124 virtual scoped_refptr<webrtc::MediaStreamInterface> |
| 120 CreateLocalMediaStream(const std::string& label); | 125 CreateLocalMediaStream(const std::string& label); |
| 121 | 126 |
| 122 // Asks the PeerConnection factory to create a Local Audio Source. | 127 // Asks the PeerConnection factory to create a Local Audio Source. |
| 123 virtual scoped_refptr<webrtc::AudioSourceInterface> | 128 virtual scoped_refptr<webrtc::AudioSourceInterface> |
| 124 CreateLocalAudioSource( | 129 CreateLocalAudioSource( |
| 125 const webrtc::MediaConstraintsInterface* constraints); | 130 const webrtc::MediaConstraintsInterface* constraints); |
| 126 | 131 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 talk_base::Thread* signaling_thread_; | 188 talk_base::Thread* signaling_thread_; |
| 184 talk_base::Thread* worker_thread_; | 189 talk_base::Thread* worker_thread_; |
| 185 base::Thread chrome_worker_thread_; | 190 base::Thread chrome_worker_thread_; |
| 186 | 191 |
| 187 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 192 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
| 188 }; | 193 }; |
| 189 | 194 |
| 190 } // namespace content | 195 } // namespace content |
| 191 | 196 |
| 192 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 197 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |