| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public: | 60 public: |
| 61 PeerConnectionDependencyFactory( | 61 PeerConnectionDependencyFactory( |
| 62 P2PSocketDispatcher* p2p_socket_dispatcher); | 62 P2PSocketDispatcher* p2p_socket_dispatcher); |
| 63 ~PeerConnectionDependencyFactory() override; | 63 ~PeerConnectionDependencyFactory() override; |
| 64 | 64 |
| 65 // Create a RTCPeerConnectionHandler object that implements the | 65 // Create a RTCPeerConnectionHandler object that implements the |
| 66 // WebKit WebRTCPeerConnectionHandler interface. | 66 // WebKit WebRTCPeerConnectionHandler interface. |
| 67 blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( | 67 blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( |
| 68 blink::WebRTCPeerConnectionHandlerClient* client); | 68 blink::WebRTCPeerConnectionHandlerClient* client); |
| 69 | 69 |
| 70 // Generate an ECDSA certificate. | |
| 71 static rtc::scoped_refptr<rtc::RTCCertificate> GenerateDefaultCertificate(); | |
| 72 | |
| 73 // Asks the PeerConnection factory to create a Local MediaStream object. | 70 // Asks the PeerConnection factory to create a Local MediaStream object. |
| 74 virtual scoped_refptr<webrtc::MediaStreamInterface> | 71 virtual scoped_refptr<webrtc::MediaStreamInterface> |
| 75 CreateLocalMediaStream(const std::string& label); | 72 CreateLocalMediaStream(const std::string& label); |
| 76 | 73 |
| 77 // Creates an implementation of a cricket::VideoCapturer object that can be | 74 // Creates an implementation of a cricket::VideoCapturer object that can be |
| 78 // used when creating a libjingle webrtc::VideoTrackSourceInterface object. | 75 // used when creating a libjingle webrtc::VideoTrackSourceInterface object. |
| 79 virtual WebRtcVideoCapturerAdapter* CreateVideoCapturer( | 76 virtual WebRtcVideoCapturerAdapter* CreateVideoCapturer( |
| 80 bool is_screen_capture); | 77 bool is_screen_capture); |
| 81 | 78 |
| 82 // Asks the PeerConnection factory to create a Local VideoTrack object. | 79 // Asks the PeerConnection factory to create a Local VideoTrack object. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 rtc::Thread* worker_thread_; | 179 rtc::Thread* worker_thread_; |
| 183 base::Thread chrome_signaling_thread_; | 180 base::Thread chrome_signaling_thread_; |
| 184 base::Thread chrome_worker_thread_; | 181 base::Thread chrome_worker_thread_; |
| 185 | 182 |
| 186 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 183 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 187 }; | 184 }; |
| 188 | 185 |
| 189 } // namespace content | 186 } // namespace content |
| 190 | 187 |
| 191 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 188 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |