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

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

Issue 493853004: Revert of Stop all PeerConnections upon suspend from Blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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_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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // Delegate functions to allow for mocking of WebKit interfaces. 179 // Delegate functions to allow for mocking of WebKit interfaces.
180 // getStats takes ownership of request parameter. 180 // getStats takes ownership of request parameter.
181 virtual void getStats(LocalRTCStatsRequest* request); 181 virtual void getStats(LocalRTCStatsRequest* request);
182 182
183 // Calls GetStats on |native_peer_connection_|. 183 // Calls GetStats on |native_peer_connection_|.
184 void GetStats(webrtc::StatsObserver* observer, 184 void GetStats(webrtc::StatsObserver* observer,
185 webrtc::MediaStreamTrackInterface* track, 185 webrtc::MediaStreamTrackInterface* track,
186 webrtc::PeerConnectionInterface::StatsOutputLevel level); 186 webrtc::PeerConnectionInterface::StatsOutputLevel level);
187 187
188 // Tells the |client_| to close RTCPeerConnection.
189 void CloseClientPeerConnection();
190
191 PeerConnectionTracker* peer_connection_tracker(); 188 PeerConnectionTracker* peer_connection_tracker();
192 189
193 protected: 190 protected:
194 webrtc::PeerConnectionInterface* native_peer_connection() { 191 webrtc::PeerConnectionInterface* native_peer_connection() {
195 return native_peer_connection_.get(); 192 return native_peer_connection_.get();
196 } 193 }
197 194
198 private: 195 private:
199 webrtc::SessionDescriptionInterface* CreateNativeSessionDescription( 196 webrtc::SessionDescriptionInterface* CreateNativeSessionDescription(
200 const blink::WebRTCSessionDescription& description, 197 const blink::WebRTCSessionDescription& description,
(...skipping 25 matching lines...) Expand all
226 RemoteStreamMap remote_streams_; 223 RemoteStreamMap remote_streams_;
227 scoped_refptr<webrtc::UMAObserver> uma_observer_; 224 scoped_refptr<webrtc::UMAObserver> uma_observer_;
228 base::TimeTicks ice_connection_checking_start_; 225 base::TimeTicks ice_connection_checking_start_;
229 226
230 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); 227 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler);
231 }; 228 };
232 229
233 } // namespace content 230 } // namespace content
234 231
235 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 232 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_tracker.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698