OLD | NEW |
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_RTC_PEER_CONNECTION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // the main render thread. | 81 // the main render thread. |
82 class CONTENT_EXPORT RTCPeerConnectionHandler | 82 class CONTENT_EXPORT RTCPeerConnectionHandler |
83 : NON_EXPORTED_BASE(public blink::WebRTCPeerConnectionHandler), | 83 : NON_EXPORTED_BASE(public blink::WebRTCPeerConnectionHandler), |
84 NON_EXPORTED_BASE(public webrtc::PeerConnectionObserver) { | 84 NON_EXPORTED_BASE(public webrtc::PeerConnectionObserver) { |
85 public: | 85 public: |
86 RTCPeerConnectionHandler( | 86 RTCPeerConnectionHandler( |
87 blink::WebRTCPeerConnectionHandlerClient* client, | 87 blink::WebRTCPeerConnectionHandlerClient* client, |
88 PeerConnectionDependencyFactory* dependency_factory); | 88 PeerConnectionDependencyFactory* dependency_factory); |
89 virtual ~RTCPeerConnectionHandler(); | 89 virtual ~RTCPeerConnectionHandler(); |
90 | 90 |
| 91 // Destroy all existing RTCPeerConnectionHandler objects. |
| 92 static void DestructAllHandlers(); |
| 93 |
91 void associateWithFrame(blink::WebFrame* frame); | 94 void associateWithFrame(blink::WebFrame* frame); |
92 | 95 |
93 // Initialize method only used for unit test. | 96 // Initialize method only used for unit test. |
94 bool InitializeForTest( | 97 bool InitializeForTest( |
95 const blink::WebRTCConfiguration& server_configuration, | 98 const blink::WebRTCConfiguration& server_configuration, |
96 const blink::WebMediaConstraints& options, | 99 const blink::WebMediaConstraints& options, |
97 PeerConnectionTracker* peer_connection_tracker); | 100 PeerConnectionTracker* peer_connection_tracker); |
98 | 101 |
99 // blink::WebRTCPeerConnectionHandler implementation | 102 // blink::WebRTCPeerConnectionHandler implementation |
100 virtual bool initialize( | 103 virtual bool initialize( |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 content::RemoteMediaStreamImpl*> RemoteStreamMap; | 212 content::RemoteMediaStreamImpl*> RemoteStreamMap; |
210 RemoteStreamMap remote_streams_; | 213 RemoteStreamMap remote_streams_; |
211 scoped_refptr<webrtc::UMAObserver> uma_observer_; | 214 scoped_refptr<webrtc::UMAObserver> uma_observer_; |
212 | 215 |
213 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 216 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
214 }; | 217 }; |
215 | 218 |
216 } // namespace content | 219 } // namespace content |
217 | 220 |
218 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 221 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
OLD | NEW |