Chromium Code Reviews| 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 // A factory for creating different objects for MediaStreamImpl. | |
| 39 class MediaStreamDependencyFactory { | |
| 40 public: | |
| 41 MediaStreamDependencyFactory(); | |
| 42 virtual ~MediaStreamDependencyFactory(); | |
| 43 | |
| 44 virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine(); | |
|
scherkus (not reviewing)
2011/11/23 22:52:04
can we get documentation on these methods?
what a
Henrik Grunell
2011/11/24 11:32:59
Added both.
| |
| 45 virtual bool CreatePeerConnectionFactory( | |
| 46 cricket::PortAllocator* port_allocator, | |
| 47 cricket::MediaEngineInterface* media_engine, | |
| 48 talk_base::Thread* worker_thread); | |
| 49 virtual void DeletePeerConnectionFactory(); | |
| 50 virtual bool PeerConnectionFactoryCreated(); | |
| 51 virtual webrtc::PeerConnection* CreatePeerConnection( | |
| 52 talk_base::Thread* signaling_thread); | |
| 53 | |
| 54 private: | |
| 55 scoped_ptr<webrtc::PeerConnectionFactory> pc_factory_; | |
| 56 | |
| 57 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); | |
| 58 }; | |
| 59 | |
| 60 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | |
| OLD | NEW |