OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectionfactory.h" | |
13 | |
14 namespace content { | |
15 class IpcNetworkManager; | |
16 class IpcPacketSocketFactory; | |
17 class P2PSocketDispatcher; | |
18 } | |
19 | |
20 namespace cricket { | |
21 class HttpPortAllocator; | |
22 class MediaEngineInterface; | |
23 class PortAllocator; | |
24 class WebRtcMediaEngine; | |
25 } | |
26 | |
27 namespace talk_base { | |
28 class NetworkManager; | |
29 class PacketSocketFactory; | |
30 class Thread; | |
31 } | |
32 | |
33 namespace webrtc { | |
34 class PeerConnection; | |
35 class VideoCaptureModule; | |
36 } | |
37 | |
38 class VideoCaptureImplManager; | |
tommi (sloooow) - chröme
2011/10/25 09:58:34
not used?
Henrik Grunell
2011/10/25 12:14:32
Nope. Removed.
| |
39 | |
40 // A factory for creating different objects for MediaStreamImpl. | |
41 class MediaStreamDependencyFactory { | |
42 public: | |
43 MediaStreamDependencyFactory() {} | |
44 virtual ~MediaStreamDependencyFactory() {} | |
45 | |
46 virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine(); | |
47 virtual bool CreatePeerConnectionFactory( | |
48 cricket::PortAllocator* port_allocator, | |
49 cricket::MediaEngineInterface* media_engine, | |
50 talk_base::Thread* worker_thread); | |
51 virtual void DeletePeerConnectionFactory(); | |
52 virtual bool PeerConnectionFactoryCreated(); | |
53 virtual webrtc::PeerConnection* CreatePeerConnection( | |
54 talk_base::Thread* signaling_thread); | |
55 | |
56 private: | |
57 scoped_ptr<webrtc::PeerConnectionFactory> pc_factory_; | |
58 | |
59 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | |
60 }; | |
61 | |
62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | |
OLD | NEW |