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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 78 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
79 public: | 79 public: |
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::WebPeerConnectionHandler* CreatePeerConnectionHandler( | |
89 WebKit::WebPeerConnectionHandlerClient* client); | |
90 virtual WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( | 88 virtual WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( |
91 WebKit::WebPeerConnection00HandlerClient* client); | 89 WebKit::WebPeerConnection00HandlerClient* client); |
92 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the | 90 // Stops a local MediaStream by notifying the MediaStreamDispatcher that the |
93 // stream no longer may be used. | 91 // stream no longer may be used. |
94 virtual void StopLocalMediaStream( | 92 virtual void StopLocalMediaStream( |
95 const WebKit::WebMediaStreamDescriptor& stream); | 93 const WebKit::WebMediaStreamDescriptor& stream); |
96 // A new MediaStream have been created based on existing tracks. | 94 // A new MediaStream have been created based on existing tracks. |
97 virtual void CreateMediaStream( | 95 virtual void CreateMediaStream( |
98 WebKit::WebFrame* frame, | 96 WebKit::WebFrame* frame, |
99 WebKit::WebMediaStreamDescriptor* stream); | 97 WebKit::WebMediaStreamDescriptor* stream); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // PeerConnection threads. signaling_thread_ is created from the | 216 // PeerConnection threads. signaling_thread_ is created from the |
219 // "current" chrome thread. | 217 // "current" chrome thread. |
220 talk_base::Thread* signaling_thread_; | 218 talk_base::Thread* signaling_thread_; |
221 talk_base::Thread* worker_thread_; | 219 talk_base::Thread* worker_thread_; |
222 base::Thread chrome_worker_thread_; | 220 base::Thread chrome_worker_thread_; |
223 | 221 |
224 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); | 222 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); |
225 }; | 223 }; |
226 | 224 |
227 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ | 225 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ |
OLD | NEW |