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

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

Issue 10919122: Move creation of PeerConnection from the RenderView to the RenderThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed UMA_HISTOGRAM_ENUMERATION and cleaned up. Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698