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

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

Issue 9543001: Support for multiple PeerConnections (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_PEER_CONNECTION_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_H_
6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_H_ 6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 class CONTENT_EXPORT PeerConnectionHandler 27 class CONTENT_EXPORT PeerConnectionHandler
28 : NON_EXPORTED_BASE(public WebKit::WebPeerConnectionHandler), 28 : NON_EXPORTED_BASE(public WebKit::WebPeerConnectionHandler),
29 NON_EXPORTED_BASE(public webrtc::PeerConnectionObserver) { 29 NON_EXPORTED_BASE(public webrtc::PeerConnectionObserver) {
30 public: 30 public:
31 PeerConnectionHandler( 31 PeerConnectionHandler(
32 WebKit::WebPeerConnectionHandlerClient* client, 32 WebKit::WebPeerConnectionHandlerClient* client,
33 MediaStreamImpl* msi, 33 MediaStreamImpl* msi,
34 MediaStreamDependencyFactory* dependency_factory); 34 MediaStreamDependencyFactory* dependency_factory);
35 virtual ~PeerConnectionHandler(); 35 virtual ~PeerConnectionHandler();
36 36
37 // Checks if a remote stream belongs to this PeerConnection.
38 virtual bool HasStream(const std::string& stream_label);
39
37 // Set the video renderer for the specified stream. 40 // Set the video renderer for the specified stream.
38 virtual void SetVideoRenderer( 41 virtual void SetVideoRenderer(
39 const std::string& stream_label, 42 const std::string& stream_label,
40 webrtc::VideoRendererWrapperInterface* renderer); 43 webrtc::VideoRendererWrapperInterface* renderer);
41 44
42 // WebKit::WebPeerConnectionHandler implementation 45 // WebKit::WebPeerConnectionHandler implementation
43 virtual void initialize( 46 virtual void initialize(
44 const WebKit::WebString& server_configuration, 47 const WebKit::WebString& server_configuration,
45 const WebKit::WebSecurityOrigin& security_origin) OVERRIDE; 48 const WebKit::WebSecurityOrigin& security_origin) OVERRIDE;
46 virtual void produceInitialOffer( 49 virtual void produceInitialOffer(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 typedef std::map<webrtc::MediaStreamInterface*, 99 typedef std::map<webrtc::MediaStreamInterface*,
97 WebKit::WebMediaStreamDescriptor> RemoteStreamMap; 100 WebKit::WebMediaStreamDescriptor> RemoteStreamMap;
98 RemoteStreamMap remote_streams_; 101 RemoteStreamMap remote_streams_;
99 102
100 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 103 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(PeerConnectionHandler); 105 DISALLOW_COPY_AND_ASSIGN(PeerConnectionHandler);
103 }; 106 };
104 107
105 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_H_ 108 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698