Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/renderer/media/mock_media_stream_dependency_factory.h

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const std::string& sdp, 174 const std::string& sdp,
175 webrtc::SdpParseError* error) OVERRIDE; 175 webrtc::SdpParseError* error) OVERRIDE;
176 virtual webrtc::IceCandidateInterface* CreateIceCandidate( 176 virtual webrtc::IceCandidateInterface* CreateIceCandidate(
177 const std::string& sdp_mid, 177 const std::string& sdp_mid,
178 int sdp_mline_index, 178 int sdp_mline_index,
179 const std::string& sdp) OVERRIDE; 179 const std::string& sdp) OVERRIDE;
180 180
181 virtual bool EnsurePeerConnectionFactory() OVERRIDE; 181 virtual bool EnsurePeerConnectionFactory() OVERRIDE;
182 virtual bool PeerConnectionFactoryCreated() OVERRIDE; 182 virtual bool PeerConnectionFactoryCreated() OVERRIDE;
183 183
184 MockAudioSource* last_audio_source() { return last_audio_source_; } 184 MockAudioSource* last_audio_source() { return last_audio_source_.get(); }
185 MockVideoSource* last_video_source() { return last_video_source_; } 185 MockVideoSource* last_video_source() { return last_video_source_.get(); }
186 186
187 private: 187 private:
188 bool mock_pc_factory_created_; 188 bool mock_pc_factory_created_;
189 scoped_refptr <MockAudioSource> last_audio_source_; 189 scoped_refptr <MockAudioSource> last_audio_source_;
190 scoped_refptr <MockVideoSource> last_video_source_; 190 scoped_refptr <MockVideoSource> last_video_source_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); 192 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 197 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_source_observer.cc ('k') | content/renderer/media/mock_media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698