| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class CONTENT_EXPORT PeerConnectionDependencyFactory | 47 class CONTENT_EXPORT PeerConnectionDependencyFactory |
| 48 : NON_EXPORTED_BASE(base::MessageLoop::DestructionObserver), | 48 : NON_EXPORTED_BASE(base::MessageLoop::DestructionObserver), |
| 49 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 49 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 50 public: | 50 public: |
| 51 PeerConnectionDependencyFactory( | 51 PeerConnectionDependencyFactory( |
| 52 P2PSocketDispatcher* p2p_socket_dispatcher); | 52 P2PSocketDispatcher* p2p_socket_dispatcher); |
| 53 ~PeerConnectionDependencyFactory() override; | 53 ~PeerConnectionDependencyFactory() override; |
| 54 | 54 |
| 55 // Create a RTCPeerConnectionHandler object that implements the | 55 // Create a RTCPeerConnectionHandler object that implements the |
| 56 // WebKit WebRTCPeerConnectionHandler interface. | 56 // WebKit WebRTCPeerConnectionHandler interface. |
| 57 blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( | 57 std::unique_ptr<blink::WebRTCPeerConnectionHandler> |
| 58 CreateRTCPeerConnectionHandler( |
| 58 blink::WebRTCPeerConnectionHandlerClient* client); | 59 blink::WebRTCPeerConnectionHandlerClient* client); |
| 59 | 60 |
| 60 // Create a proxy object for a VideoTrackSource that makes sure it's called on | 61 // Create a proxy object for a VideoTrackSource that makes sure it's called on |
| 61 // the correct threads. | 62 // the correct threads. |
| 62 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> | 63 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> |
| 63 CreateVideoTrackSourceProxy(webrtc::VideoTrackSourceInterface* source); | 64 CreateVideoTrackSourceProxy(webrtc::VideoTrackSourceInterface* source); |
| 64 | 65 |
| 65 // Asks the PeerConnection factory to create a Local MediaStream object. | 66 // Asks the PeerConnection factory to create a Local MediaStream object. |
| 66 virtual scoped_refptr<webrtc::MediaStreamInterface> | 67 virtual scoped_refptr<webrtc::MediaStreamInterface> |
| 67 CreateLocalMediaStream(const std::string& label); | 68 CreateLocalMediaStream(const std::string& label); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 rtc::Thread* worker_thread_; | 153 rtc::Thread* worker_thread_; |
| 153 base::Thread chrome_signaling_thread_; | 154 base::Thread chrome_signaling_thread_; |
| 154 base::Thread chrome_worker_thread_; | 155 base::Thread chrome_worker_thread_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 157 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace content | 160 } // namespace content |
| 160 | 161 |
| 161 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 162 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |