| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 CreateLocalVideoTrack(const std::string& label, | 139 CreateLocalVideoTrack(const std::string& label, |
| 140 webrtc::VideoSourceInterface* source); | 140 webrtc::VideoSourceInterface* source); |
| 141 | 141 |
| 142 // Asks the PeerConnection factory to create a Local AudioTrack object. | 142 // Asks the PeerConnection factory to create a Local AudioTrack object. |
| 143 virtual scoped_refptr<webrtc::LocalAudioTrackInterface> | 143 virtual scoped_refptr<webrtc::LocalAudioTrackInterface> |
| 144 CreateLocalAudioTrack(const std::string& label, | 144 CreateLocalAudioTrack(const std::string& label, |
| 145 webrtc::AudioDeviceModule* audio_device); | 145 webrtc::AudioDeviceModule* audio_device); |
| 146 | 146 |
| 147 virtual bool EnsurePeerConnectionFactory(); | 147 virtual bool EnsurePeerConnectionFactory(); |
| 148 virtual bool PeerConnectionFactoryCreated(); | 148 virtual bool PeerConnectionFactoryCreated(); |
| 149 virtual void SetAudioDeviceSessionId(int session_id); | |
| 150 | 149 |
| 151 private: | 150 private: |
| 152 // Creates and deletes |pc_factory_|, which in turn is used for | 151 // Creates and deletes |pc_factory_|, which in turn is used for |
| 153 // creating PeerConnection objects. | 152 // creating PeerConnection objects. |
| 154 bool CreatePeerConnectionFactory(); | 153 bool CreatePeerConnectionFactory(); |
| 155 | 154 |
| 156 void InitializeWorkerThread(talk_base::Thread** thread, | 155 void InitializeWorkerThread(talk_base::Thread** thread, |
| 157 base::WaitableEvent* event); | 156 base::WaitableEvent* event); |
| 158 | 157 |
| 159 void CreateIpcNetworkManagerOnWorkerThread(base::WaitableEvent* event); | 158 void CreateIpcNetworkManagerOnWorkerThread(base::WaitableEvent* event); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 176 talk_base::Thread* signaling_thread_; | 175 talk_base::Thread* signaling_thread_; |
| 177 talk_base::Thread* worker_thread_; | 176 talk_base::Thread* worker_thread_; |
| 178 base::Thread chrome_worker_thread_; | 177 base::Thread chrome_worker_thread_; |
| 179 | 178 |
| 180 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 179 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
| 181 }; | 180 }; |
| 182 | 181 |
| 183 } // namespace content | 182 } // namespace content |
| 184 | 183 |
| 185 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 184 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |