Chromium Code Reviews| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 virtual void getStats(const scoped_refptr<LocalRTCStatsRequest>& request); | 158 virtual void getStats(const scoped_refptr<LocalRTCStatsRequest>& request); |
| 159 | 159 |
| 160 // Asynchronously calls native_peer_connection_->getStats on the signaling | 160 // Asynchronously calls native_peer_connection_->getStats on the signaling |
| 161 // thread. If the |track_id| is empty, the |track_type| parameter is ignored. | 161 // thread. If the |track_id| is empty, the |track_type| parameter is ignored. |
| 162 void GetStats(webrtc::StatsObserver* observer, | 162 void GetStats(webrtc::StatsObserver* observer, |
| 163 webrtc::PeerConnectionInterface::StatsOutputLevel level, | 163 webrtc::PeerConnectionInterface::StatsOutputLevel level, |
| 164 const std::string& track_id, | 164 const std::string& track_id, |
| 165 blink::WebMediaStreamSource::Type track_type); | 165 blink::WebMediaStreamSource::Type track_type); |
| 166 | 166 |
| 167 // Tells the |client_| to close RTCPeerConnection. | 167 // Tells the |client_| to close RTCPeerConnection. |
| 168 void CloseClientPeerConnection(); | 168 virtual void CloseClientPeerConnection(); |
|
tommi (sloooow) - chröme
2016/08/29 13:30:30
nit: add a comment that the methods is virtual for
| |
| 169 | 169 |
| 170 // Start recording an event log. | 170 // Start recording an event log. |
| 171 void StartEventLog(IPC::PlatformFileForTransit file, | 171 void StartEventLog(IPC::PlatformFileForTransit file, |
| 172 int64_t max_file_size_bytes); | 172 int64_t max_file_size_bytes); |
| 173 // Stop recording an event log. | 173 // Stop recording an event log. |
| 174 void StopEventLog(); | 174 void StopEventLog(); |
| 175 | 175 |
| 176 protected: | 176 protected: |
| 177 webrtc::PeerConnectionInterface* native_peer_connection() { | 177 webrtc::PeerConnectionInterface* native_peer_connection() { |
| 178 return native_peer_connection_.get(); | 178 return native_peer_connection_.get(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; | 285 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; |
| 286 | 286 |
| 287 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; | 287 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; |
| 288 | 288 |
| 289 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 289 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 } // namespace content | 292 } // namespace content |
| 293 | 293 |
| 294 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 294 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| OLD | NEW |