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_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 class NetworkManager; | 26 class NetworkManager; |
27 class PacketSocketFactory; | 27 class PacketSocketFactory; |
28 class Thread; | 28 class Thread; |
29 } | 29 } |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 class PeerConnection; | 32 class PeerConnection; |
33 class VideoCaptureModule; | 33 class VideoCaptureModule; |
34 } | 34 } |
35 | 35 |
| 36 namespace WebKit { |
| 37 class WebPeerConnection00Handler; |
| 38 class WebPeerConnection00HandlerClient; |
| 39 } |
| 40 |
36 class VideoCaptureImplManager; | 41 class VideoCaptureImplManager; |
37 | 42 |
38 // Object factory for MediaStreamImpl and PeerConnectionHandler. | 43 // Object factory for MediaStreamImpl and PeerConnectionHandler. |
39 class CONTENT_EXPORT MediaStreamDependencyFactory { | 44 class CONTENT_EXPORT MediaStreamDependencyFactory { |
40 public: | 45 public: |
41 explicit MediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); | 46 explicit MediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); |
42 virtual ~MediaStreamDependencyFactory(); | 47 virtual ~MediaStreamDependencyFactory(); |
43 | 48 |
| 49 // Create a WebKit WebPeerConnection00Handler. |
| 50 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( |
| 51 WebKit::WebPeerConnection00HandlerClient* client); |
| 52 |
44 // Creates and deletes |pc_factory_|, which in turn is used for | 53 // Creates and deletes |pc_factory_|, which in turn is used for |
45 // creating PeerConnection objects. | 54 // creating PeerConnection objects. |
46 virtual bool CreatePeerConnectionFactory( | 55 virtual bool CreatePeerConnectionFactory( |
47 talk_base::Thread* worker_thread, | 56 talk_base::Thread* worker_thread, |
48 talk_base::Thread* signaling_thread, | 57 talk_base::Thread* signaling_thread, |
49 content::P2PSocketDispatcher* socket_dispatcher, | 58 content::P2PSocketDispatcher* socket_dispatcher, |
50 talk_base::NetworkManager* network_manager, | 59 talk_base::NetworkManager* network_manager, |
51 talk_base::PacketSocketFactory* socket_factory); | 60 talk_base::PacketSocketFactory* socket_factory); |
52 virtual void ReleasePeerConnectionFactory(); | 61 virtual void ReleasePeerConnectionFactory(); |
53 virtual bool PeerConnectionFactoryCreated(); | 62 virtual bool PeerConnectionFactoryCreated(); |
(...skipping 26 matching lines...) Expand all Loading... |
80 const std::string& sdp); | 89 const std::string& sdp); |
81 | 90 |
82 private: | 91 private: |
83 talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; | 92 talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; |
84 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 93 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
85 | 94 |
86 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 95 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
87 }; | 96 }; |
88 | 97 |
89 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 98 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |