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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 namespace talk_base { | 43 namespace talk_base { |
44 class Thread; | 44 class Thread; |
45 } | 45 } |
46 | 46 |
47 namespace WebKit { | 47 namespace WebKit { |
48 class WebFrame; | 48 class WebFrame; |
49 class WebMediaStreamComponent; | 49 class WebMediaStreamComponent; |
50 class WebMediaStreamDescriptor; | 50 class WebMediaStreamDescriptor; |
51 class WebPeerConnection00Handler; | 51 class WebPeerConnection00Handler; |
52 class WebPeerConnection00HandlerClient; | 52 class WebPeerConnection00HandlerClient; |
53 class WebPeerConnectionHandler; | 53 class WebRTCPeerConnectionHandler; |
54 class WebPeerConnectionHandlerClient; | 54 class WebRTCPeerConnectionHandlerClient; |
55 } | 55 } |
56 | 56 |
57 class MediaStreamDispatcher; | 57 class MediaStreamDispatcher; |
58 class MediaStreamDependencyFactory; | 58 class MediaStreamDependencyFactory; |
59 class PeerConnectionHandlerBase; | 59 class PeerConnectionHandlerBase; |
60 class VideoCaptureImplManager; | 60 class VideoCaptureImplManager; |
61 class RTCVideoDecoder; | 61 class RTCVideoDecoder; |
62 | 62 |
63 // MediaStreamImpl is a delegate for the Media Stream API messages used by | 63 // MediaStreamImpl is a delegate for the Media Stream API messages used by |
64 // WebKit. It ties together WebKit, native PeerConnection in libjingle and | 64 // WebKit. It ties together WebKit, native PeerConnection in libjingle and |
(...skipping 15 matching lines...) Expand all Loading... |
80 MediaStreamImpl( | 80 MediaStreamImpl( |
81 content::RenderView* render_view, | 81 content::RenderView* render_view, |
82 MediaStreamDispatcher* media_stream_dispatcher, | 82 MediaStreamDispatcher* media_stream_dispatcher, |
83 content::P2PSocketDispatcher* p2p_socket_dispatcher, | 83 content::P2PSocketDispatcher* p2p_socket_dispatcher, |
84 VideoCaptureImplManager* vc_manager, | 84 VideoCaptureImplManager* vc_manager, |
85 MediaStreamDependencyFactory* dependency_factory); | 85 MediaStreamDependencyFactory* dependency_factory); |
86 virtual ~MediaStreamImpl(); | 86 virtual ~MediaStreamImpl(); |
87 | 87 |
88 virtual WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( | 88 virtual WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( |
89 WebKit::WebPeerConnection00HandlerClient* client); | 89 WebKit::WebPeerConnection00HandlerClient* client); |
| 90 virtual WebKit::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( |
| 91 WebKit::WebRTCPeerConnectionHandlerClient* client); |
90 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the | 92 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the |
91 // stream no longer may be used. | 93 // stream no longer may be used. |
92 virtual void StopLocalMediaStream( | 94 virtual void StopLocalMediaStream( |
93 const WebKit::WebMediaStreamDescriptor& stream); | 95 const WebKit::WebMediaStreamDescriptor& stream); |
94 // A new MediaStream have been created based on existing tracks. | 96 // A new MediaStream have been created based on existing tracks. |
95 virtual void CreateMediaStream( | 97 virtual void CreateMediaStream( |
96 WebKit::WebFrame* frame, | 98 WebKit::WebFrame* frame, |
97 WebKit::WebMediaStreamDescriptor* stream); | 99 WebKit::WebMediaStreamDescriptor* stream); |
98 | 100 |
99 // WebKit::WebUserMediaClient implementation | 101 // WebKit::WebUserMediaClient implementation |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // PeerConnection threads. signaling_thread_ is created from the | 218 // PeerConnection threads. signaling_thread_ is created from the |
217 // "current" chrome thread. | 219 // "current" chrome thread. |
218 talk_base::Thread* signaling_thread_; | 220 talk_base::Thread* signaling_thread_; |
219 talk_base::Thread* worker_thread_; | 221 talk_base::Thread* worker_thread_; |
220 base::Thread chrome_worker_thread_; | 222 base::Thread chrome_worker_thread_; |
221 | 223 |
222 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); | 224 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); |
223 }; | 225 }; |
224 | 226 |
225 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ | 227 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ |
OLD | NEW |