| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual scoped_refptr<webrtc::PeerConnectionInterface> | 98 virtual scoped_refptr<webrtc::PeerConnectionInterface> |
| 99 CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers, | 99 CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers, |
| 100 const webrtc::MediaConstraintsInterface* constraints, | 100 const webrtc::MediaConstraintsInterface* constraints, |
| 101 WebKit::WebFrame* frame, | 101 WebKit::WebFrame* frame, |
| 102 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 102 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
| 103 virtual scoped_refptr<webrtc::VideoSourceInterface> | 103 virtual scoped_refptr<webrtc::VideoSourceInterface> |
| 104 CreateVideoSource( | 104 CreateVideoSource( |
| 105 int video_session_id, | 105 int video_session_id, |
| 106 bool is_screencast, | 106 bool is_screencast, |
| 107 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 107 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
| 108 virtual bool InitializeAudioSource( |
| 109 const StreamDeviceInfo& device_info) OVERRIDE; |
| 110 virtual bool CreateWebAudioSource( |
| 111 WebKit::WebMediaStreamSource* source) OVERRIDE; |
| 108 virtual scoped_refptr<webrtc::LocalMediaStreamInterface> | 112 virtual scoped_refptr<webrtc::LocalMediaStreamInterface> |
| 109 CreateLocalMediaStream(const std::string& label) OVERRIDE; | 113 CreateLocalMediaStream(const std::string& label) OVERRIDE; |
| 110 virtual scoped_refptr<webrtc::VideoTrackInterface> | 114 virtual scoped_refptr<webrtc::VideoTrackInterface> |
| 111 CreateLocalVideoTrack(const std::string& id, | 115 CreateLocalVideoTrack(const std::string& id, |
| 112 webrtc::VideoSourceInterface* source) OVERRIDE; | 116 webrtc::VideoSourceInterface* source) OVERRIDE; |
| 113 virtual scoped_refptr<webrtc::LocalAudioTrackInterface> | 117 virtual scoped_refptr<webrtc::LocalAudioTrackInterface> |
| 114 CreateLocalAudioTrack(const std::string& id, | 118 CreateLocalAudioTrack(const std::string& id, |
| 115 webrtc::AudioDeviceModule* audio_device) OVERRIDE; | 119 webrtc::AudioDeviceModule* audio_device) OVERRIDE; |
| 116 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( | 120 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( |
| 117 const std::string& type, | 121 const std::string& type, |
| 118 const std::string& sdp) OVERRIDE; | 122 const std::string& sdp) OVERRIDE; |
| 119 virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 123 virtual webrtc::IceCandidateInterface* CreateIceCandidate( |
| 120 const std::string& sdp_mid, | 124 const std::string& sdp_mid, |
| 121 int sdp_mline_index, | 125 int sdp_mline_index, |
| 122 const std::string& sdp) OVERRIDE; | 126 const std::string& sdp) OVERRIDE; |
| 123 | 127 |
| 124 virtual bool EnsurePeerConnectionFactory() OVERRIDE; | 128 virtual bool EnsurePeerConnectionFactory() OVERRIDE; |
| 125 virtual bool PeerConnectionFactoryCreated() OVERRIDE; | 129 virtual bool PeerConnectionFactoryCreated() OVERRIDE; |
| 126 virtual void SetAudioDeviceSessionId(int session_id) OVERRIDE; | |
| 127 | 130 |
| 128 MockVideoSource* last_video_source() { return last_video_source_; } | 131 MockVideoSource* last_video_source() { return last_video_source_; } |
| 129 | 132 |
| 130 private: | 133 private: |
| 131 bool mock_pc_factory_created_; | 134 bool mock_pc_factory_created_; |
| 132 scoped_refptr <MockVideoSource> last_video_source_; | 135 scoped_refptr <MockVideoSource> last_video_source_; |
| 133 | 136 |
| 134 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 137 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
| 135 }; | 138 }; |
| 136 | 139 |
| 137 } // namespace content | 140 } // namespace content |
| 138 | 141 |
| 139 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 142 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |