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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Object factory for MediaStreamImpl and PeerConnectionHandler. | 39 // Object factory for MediaStreamImpl and PeerConnectionHandler. |
40 class CONTENT_EXPORT MediaStreamDependencyFactory { | 40 class CONTENT_EXPORT MediaStreamDependencyFactory { |
41 public: | 41 public: |
42 explicit MediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); | 42 explicit MediaStreamDependencyFactory(VideoCaptureImplManager* vc_manager); |
43 virtual ~MediaStreamDependencyFactory(); | 43 virtual ~MediaStreamDependencyFactory(); |
44 | 44 |
45 // Creates and deletes |pc_factory_|, which in turn is used for | 45 // Creates and deletes |pc_factory_|, which in turn is used for |
46 // creating PeerConnection objects. | 46 // creating PeerConnection objects. |
47 virtual bool CreatePeerConnectionFactory( | 47 virtual bool CreatePeerConnectionFactory( |
| 48 int render_view_id, |
48 talk_base::Thread* worker_thread, | 49 talk_base::Thread* worker_thread, |
49 talk_base::Thread* signaling_thread, | 50 talk_base::Thread* signaling_thread, |
50 content::P2PSocketDispatcher* socket_dispatcher, | 51 content::P2PSocketDispatcher* socket_dispatcher, |
51 talk_base::NetworkManager* network_manager, | 52 talk_base::NetworkManager* network_manager, |
52 talk_base::PacketSocketFactory* socket_factory); | 53 talk_base::PacketSocketFactory* socket_factory); |
53 virtual void ReleasePeerConnectionFactory(); | 54 virtual void ReleasePeerConnectionFactory(); |
54 virtual bool PeerConnectionFactoryCreated(); | 55 virtual bool PeerConnectionFactoryCreated(); |
55 | 56 |
56 // Asks the PeerConnection factory to create a PeerConnection object. | 57 // Asks the PeerConnection factory to create a PeerConnection object. |
57 // The PeerConnection object is owned by PeerConnectionHandler. | 58 // The PeerConnection object is owned by PeerConnectionHandler. |
(...skipping 22 matching lines...) Expand all Loading... |
80 const std::string& sdp); | 81 const std::string& sdp); |
81 | 82 |
82 private: | 83 private: |
83 talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; | 84 talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_; |
84 scoped_refptr<VideoCaptureImplManager> vc_manager_; | 85 scoped_refptr<VideoCaptureImplManager> vc_manager_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | 87 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); |
87 }; | 88 }; |
88 | 89 |
89 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 90 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |