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