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

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

Issue 2263373003: Android: move peerconnection out of power observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 3 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
« no previous file with comments | « content/renderer/media/peer_connection_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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 // Make it virtual for testing purpose.
169 virtual void CloseClientPeerConnection();
169 170
170 // Start recording an event log. 171 // Start recording an event log.
171 void StartEventLog(IPC::PlatformFileForTransit file, 172 void StartEventLog(IPC::PlatformFileForTransit file,
172 int64_t max_file_size_bytes); 173 int64_t max_file_size_bytes);
173 // Stop recording an event log. 174 // Stop recording an event log.
174 void StopEventLog(); 175 void StopEventLog();
175 176
176 protected: 177 protected:
177 webrtc::PeerConnectionInterface* native_peer_connection() { 178 webrtc::PeerConnectionInterface* native_peer_connection() {
178 return native_peer_connection_.get(); 179 return native_peer_connection_.get();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; 286 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {};
286 287
287 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; 288 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_;
288 289
289 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); 290 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler);
290 }; 291 };
291 292
292 } // namespace content 293 } // namespace content
293 294
294 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 295 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698