| 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 std::unique_ptr<blink::WebRTCPeerConnectionHandler> | 57 blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( |
| 58 CreateRTCPeerConnectionHandler( | |
| 59 blink::WebRTCPeerConnectionHandlerClient* client); | 58 blink::WebRTCPeerConnectionHandlerClient* client); |
| 60 | 59 |
| 61 // Create a proxy object for a VideoTrackSource that makes sure it's called on | 60 // Create a proxy object for a VideoTrackSource that makes sure it's called on |
| 62 // the correct threads. | 61 // the correct threads. |
| 63 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> | 62 virtual scoped_refptr<webrtc::VideoTrackSourceInterface> |
| 64 CreateVideoTrackSourceProxy(webrtc::VideoTrackSourceInterface* source); | 63 CreateVideoTrackSourceProxy(webrtc::VideoTrackSourceInterface* source); |
| 65 | 64 |
| 66 // Asks the PeerConnection factory to create a Local MediaStream object. | 65 // Asks the PeerConnection factory to create a Local MediaStream object. |
| 67 virtual scoped_refptr<webrtc::MediaStreamInterface> | 66 virtual scoped_refptr<webrtc::MediaStreamInterface> |
| 68 CreateLocalMediaStream(const std::string& label); | 67 CreateLocalMediaStream(const std::string& label); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 rtc::Thread* worker_thread_; | 152 rtc::Thread* worker_thread_; |
| 154 base::Thread chrome_signaling_thread_; | 153 base::Thread chrome_signaling_thread_; |
| 155 base::Thread chrome_worker_thread_; | 154 base::Thread chrome_worker_thread_; |
| 156 | 155 |
| 157 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); | 156 DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory); |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 } // namespace content | 159 } // namespace content |
| 161 | 160 |
| 162 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 161 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
| OLD | NEW |