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

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

Issue 11270012: Adding audio support to the new webmediaplyer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a lock to protect the |renderer_| Created 8 years, 1 month 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_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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( 100 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
101 const std::string& type, 101 const std::string& type,
102 const std::string& sdp); 102 const std::string& sdp);
103 103
104 // Creates a libjingle representation of an ice candidate. 104 // Creates a libjingle representation of an ice candidate.
105 virtual webrtc::IceCandidateInterface* CreateIceCandidate( 105 virtual webrtc::IceCandidateInterface* CreateIceCandidate(
106 const std::string& sdp_mid, 106 const std::string& sdp_mid,
107 int sdp_mline_index, 107 int sdp_mline_index,
108 const std::string& sdp); 108 const std::string& sdp);
109 109
110 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice();
111
110 protected: 112 protected:
111 // Asks the PeerConnection factory to create a Local MediaStream object. 113 // Asks the PeerConnection factory to create a Local MediaStream object.
112 virtual scoped_refptr<webrtc::LocalMediaStreamInterface> 114 virtual scoped_refptr<webrtc::LocalMediaStreamInterface>
113 CreateLocalMediaStream(const std::string& label); 115 CreateLocalMediaStream(const std::string& label);
114 116
115 // Asks the PeerConnection factory to create a Local VideoTrack object. 117 // Asks the PeerConnection factory to create a Local VideoTrack object.
116 virtual scoped_refptr<webrtc::LocalVideoTrackInterface> 118 virtual scoped_refptr<webrtc::LocalVideoTrackInterface>
117 CreateLocalVideoTrack(const std::string& label, 119 CreateLocalVideoTrack(const std::string& label,
118 int video_session_id, 120 int video_session_id,
119 bool is_screencast); 121 bool is_screencast);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 talk_base::Thread* signaling_thread_; 157 talk_base::Thread* signaling_thread_;
156 talk_base::Thread* worker_thread_; 158 talk_base::Thread* worker_thread_;
157 base::Thread chrome_worker_thread_; 159 base::Thread chrome_worker_thread_;
158 160
159 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 161 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
160 }; 162 };
161 163
162 } // namespace content 164 } // namespace content
163 165
164 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 166 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698