| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const std::string& type, | 101 const std::string& type, |
| 102 const std::string& sdp, | 102 const std::string& sdp, |
| 103 webrtc::SdpParseError* error); | 103 webrtc::SdpParseError* error); |
| 104 | 104 |
| 105 // Creates a libjingle representation of an ice candidate. | 105 // Creates a libjingle representation of an ice candidate. |
| 106 virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 106 virtual webrtc::IceCandidateInterface* CreateIceCandidate( |
| 107 const std::string& sdp_mid, | 107 const std::string& sdp_mid, |
| 108 int sdp_mline_index, | 108 int sdp_mline_index, |
| 109 const std::string& sdp); | 109 const std::string& sdp); |
| 110 | 110 |
| 111 // Starts recording an RTC event log. | |
| 112 virtual bool StartRtcEventLog(base::PlatformFile file); | |
| 113 | |
| 114 // Starts recording an RTC event log. | |
| 115 virtual void StopRtcEventLog(); | |
| 116 | |
| 117 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); | 111 WebRtcAudioDeviceImpl* GetWebRtcAudioDevice(); |
| 118 | 112 |
| 119 void EnsureInitialized(); | 113 void EnsureInitialized(); |
| 120 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const; | 114 scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcWorkerThread() const; |
| 121 virtual scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() | 115 virtual scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread() |
| 122 const; | 116 const; |
| 123 | 117 |
| 124 protected: | 118 protected: |
| 125 // Asks the PeerConnection factory to create a Local VideoTrack object with | 119 // Asks the PeerConnection factory to create a Local VideoTrack object with |
| 126 // the video source using |capturer|. | 120 // the video source using |capturer|. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 rtc::Thread* worker_thread_; | 173 rtc::Thread* worker_thread_; |
| 180 base::Thread chrome_signaling_thread_; | 174 base::Thread chrome_signaling_thread_; |
| 181 base::Thread chrome_worker_thread_; | 175 base::Thread chrome_worker_thread_; |
| 182 | 176 |
| 183 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 177 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 184 }; | 178 }; |
| 185 | 179 |
| 186 } // namespace content | 180 } // namespace content |
| 187 | 181 |
| 188 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 182 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |