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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // |native_peer_connection_| is the libjingle native PeerConnection object. | 271 // |native_peer_connection_| is the libjingle native PeerConnection object. |
272 scoped_refptr<webrtc::PeerConnectionInterface> native_peer_connection_; | 272 scoped_refptr<webrtc::PeerConnectionInterface> native_peer_connection_; |
273 | 273 |
274 // Record info about the first SessionDescription from the local and | 274 // Record info about the first SessionDescription from the local and |
275 // remote side to record UMA stats once both are set. We only check | 275 // remote side to record UMA stats once both are set. We only check |
276 // for the first offer or answer. "pranswer"s and "unknown"s (from | 276 // for the first offer or answer. "pranswer"s and "unknown"s (from |
277 // unit tests) are ignored. | 277 // unit tests) are ignored. |
278 std::unique_ptr<FirstSessionDescription> first_local_description_; | 278 std::unique_ptr<FirstSessionDescription> first_local_description_; |
279 std::unique_ptr<FirstSessionDescription> first_remote_description_; | 279 std::unique_ptr<FirstSessionDescription> first_remote_description_; |
280 | 280 |
281 typedef std::map<webrtc::MediaStreamInterface*, | 281 std::map<webrtc::MediaStreamInterface*, |
282 content::RemoteMediaStreamImpl*> RemoteStreamMap; | 282 std::unique_ptr<content::RemoteMediaStreamImpl>> |
283 RemoteStreamMap remote_streams_; | 283 remote_streams_; |
284 scoped_refptr<webrtc::UMAObserver> uma_observer_; | 284 scoped_refptr<webrtc::UMAObserver> uma_observer_; |
285 base::TimeTicks ice_connection_checking_start_; | 285 base::TimeTicks ice_connection_checking_start_; |
286 | 286 |
287 // Track which ICE Connection state that this PeerConnection has gone through. | 287 // Track which ICE Connection state that this PeerConnection has gone through. |
288 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; | 288 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; |
289 | 289 |
290 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; | 290 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; |
291 | 291 |
292 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 292 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
293 }; | 293 }; |
294 | 294 |
295 } // namespace content | 295 } // namespace content |
296 | 296 |
297 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 297 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
OLD | NEW |