| 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_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual ~MockMediaStreamDependencyFactory(); | 116 virtual ~MockMediaStreamDependencyFactory(); |
| 117 | 117 |
| 118 virtual scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection( | 118 virtual scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection( |
| 119 const webrtc::PeerConnectionInterface::IceServers& ice_servers, | 119 const webrtc::PeerConnectionInterface::IceServers& ice_servers, |
| 120 const webrtc::MediaConstraintsInterface* constraints, | 120 const webrtc::MediaConstraintsInterface* constraints, |
| 121 blink::WebFrame* frame, | 121 blink::WebFrame* frame, |
| 122 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 122 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
| 123 virtual scoped_refptr<webrtc::AudioSourceInterface> | 123 virtual scoped_refptr<webrtc::AudioSourceInterface> |
| 124 CreateLocalAudioSource( | 124 CreateLocalAudioSource( |
| 125 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 125 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
| 126 virtual cricket::VideoCapturer* CreateVideoCapturer( |
| 127 const StreamDeviceInfo& info) OVERRIDE; |
| 126 virtual scoped_refptr<webrtc::VideoSourceInterface> | 128 virtual scoped_refptr<webrtc::VideoSourceInterface> |
| 127 CreateLocalVideoSource( | 129 CreateLocalVideoSource( |
| 128 int video_session_id, | 130 cricket::VideoCapturer* capturer, |
| 129 bool is_screencast, | 131 const blink::WebMediaConstraints& video_constraints) OVERRIDE; |
| 130 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 132 |
| 131 virtual scoped_refptr<WebAudioCapturerSource> CreateWebAudioSource( | 133 virtual scoped_refptr<WebAudioCapturerSource> CreateWebAudioSource( |
| 132 blink::WebMediaStreamSource* source, | 134 blink::WebMediaStreamSource* source, |
| 133 RTCMediaConstraints* constraints) OVERRIDE; | 135 RTCMediaConstraints* constraints) OVERRIDE; |
| 134 virtual scoped_refptr<webrtc::MediaStreamInterface> | 136 virtual scoped_refptr<webrtc::MediaStreamInterface> |
| 135 CreateLocalMediaStream(const std::string& label) OVERRIDE; | 137 CreateLocalMediaStream(const std::string& label) OVERRIDE; |
| 136 virtual scoped_refptr<webrtc::VideoTrackInterface> | 138 virtual scoped_refptr<webrtc::VideoTrackInterface> |
| 137 CreateLocalVideoTrack(const std::string& id, | 139 CreateLocalVideoTrack(const std::string& id, |
| 138 webrtc::VideoSourceInterface* source) OVERRIDE; | 140 webrtc::VideoSourceInterface* source) OVERRIDE; |
| 139 virtual scoped_refptr<webrtc::VideoTrackInterface> | 141 virtual scoped_refptr<webrtc::VideoTrackInterface> |
| 140 CreateLocalVideoTrack(const std::string& id, | 142 CreateLocalVideoTrack(const std::string& id, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 167 bool mock_pc_factory_created_; | 169 bool mock_pc_factory_created_; |
| 168 scoped_refptr <MockAudioSource> last_audio_source_; | 170 scoped_refptr <MockAudioSource> last_audio_source_; |
| 169 scoped_refptr <MockVideoSource> last_video_source_; | 171 scoped_refptr <MockVideoSource> last_video_source_; |
| 170 | 172 |
| 171 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 173 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace content | 176 } // namespace content |
| 175 | 177 |
| 176 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 178 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |