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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Asks the libjingle PeerConnection factory to create a libjingle | 98 // Asks the libjingle PeerConnection factory to create a libjingle |
99 // PeerConnection object. | 99 // PeerConnection object. |
100 // The PeerConnection object is owned by PeerConnectionHandler. | 100 // The PeerConnection object is owned by PeerConnectionHandler. |
101 virtual scoped_refptr<webrtc::PeerConnectionInterface> | 101 virtual scoped_refptr<webrtc::PeerConnectionInterface> |
102 CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers, | 102 CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers, |
103 const webrtc::MediaConstraintsInterface* constraints, | 103 const webrtc::MediaConstraintsInterface* constraints, |
104 WebKit::WebFrame* web_frame, | 104 WebKit::WebFrame* web_frame, |
105 webrtc::PeerConnectionObserver* observer); | 105 webrtc::PeerConnectionObserver* observer); |
106 | 106 |
107 // Creates a libjingle representation of a Session description. Used by a | 107 // Creates a libjingle representation of a Session description. Used by a |
108 // PeerConnectionHandlerJsep instance. | |
109 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( | |
110 const std::string& sdp); | |
111 | |
112 // Creates a libjingle representation of a Session description. Used by a | |
113 // RTCPeerConnectionHandler instance. | 108 // RTCPeerConnectionHandler instance. |
114 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( | 109 virtual webrtc::SessionDescriptionInterface* CreateSessionDescription( |
115 const std::string& type, | 110 const std::string& type, |
116 const std::string& sdp); | 111 const std::string& sdp); |
117 | 112 |
118 // Creates a libjingle representation of an ice candidate. | 113 // Creates a libjingle representation of an ice candidate. |
119 virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 114 virtual webrtc::IceCandidateInterface* CreateIceCandidate( |
120 const std::string& sdp_mid, | 115 const std::string& sdp_mid, |
121 int sdp_mline_index, | 116 int sdp_mline_index, |
122 const std::string& sdp); | 117 const std::string& sdp); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 talk_base::Thread* signaling_thread_; | 171 talk_base::Thread* signaling_thread_; |
177 talk_base::Thread* worker_thread_; | 172 talk_base::Thread* worker_thread_; |
178 base::Thread chrome_worker_thread_; | 173 base::Thread chrome_worker_thread_; |
179 | 174 |
180 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 175 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
181 }; | 176 }; |
182 | 177 |
183 } // namespace content | 178 } // namespace content |
184 | 179 |
185 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 180 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |