| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Creates and adds libjingle representation of a MediaStreamTrack to |stream| | 115 // Creates and adds libjingle representation of a MediaStreamTrack to |stream| |
| 116 // based on the desired |track_id| and |capturer|. | 116 // based on the desired |track_id| and |capturer|. |
| 117 bool AddNativeVideoMediaTrack(const std::string& track_id, | 117 bool AddNativeVideoMediaTrack(const std::string& track_id, |
| 118 blink::WebMediaStream* stream, | 118 blink::WebMediaStream* stream, |
| 119 cricket::VideoCapturer* capturer); | 119 cricket::VideoCapturer* capturer); |
| 120 | 120 |
| 121 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream, | 121 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream, |
| 122 const blink::WebMediaStreamTrack& track); | 122 const blink::WebMediaStreamTrack& track); |
| 123 | 123 |
| 124 // Asks the PeerConnection factory to create a Video Source. |
| 125 virtual scoped_refptr<webrtc::VideoSourceInterface> |
| 126 CreateVideoSource( |
| 127 cricket::VideoCapturer* capturer, |
| 128 const webrtc::MediaConstraintsInterface* constraints); |
| 129 |
| 124 // Asks the libjingle PeerConnection factory to create a libjingle | 130 // Asks the libjingle PeerConnection factory to create a libjingle |
| 125 // PeerConnection object. | 131 // PeerConnection object. |
| 126 // The PeerConnection object is owned by PeerConnectionHandler. | 132 // The PeerConnection object is owned by PeerConnectionHandler. |
| 127 virtual scoped_refptr<webrtc::PeerConnectionInterface> | 133 virtual scoped_refptr<webrtc::PeerConnectionInterface> |
| 128 CreatePeerConnection( | 134 CreatePeerConnection( |
| 129 const webrtc::PeerConnectionInterface::IceServers& ice_servers, | 135 const webrtc::PeerConnectionInterface::IceServers& ice_servers, |
| 130 const webrtc::MediaConstraintsInterface* constraints, | 136 const webrtc::MediaConstraintsInterface* constraints, |
| 131 blink::WebFrame* web_frame, | 137 blink::WebFrame* web_frame, |
| 132 webrtc::PeerConnectionObserver* observer); | 138 webrtc::PeerConnectionObserver* observer); |
| 133 | 139 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 base::Thread chrome_worker_thread_; | 272 base::Thread chrome_worker_thread_; |
| 267 | 273 |
| 268 base::PlatformFile aec_dump_file_; | 274 base::PlatformFile aec_dump_file_; |
| 269 | 275 |
| 270 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 276 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
| 271 }; | 277 }; |
| 272 | 278 |
| 273 } // namespace content | 279 } // namespace content |
| 274 | 280 |
| 275 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 281 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |