Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/renderer/media/media_stream_dependency_factory.h

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Adding render view files again, can't split CL Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698