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

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

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)
Patch Set: TODO to impl MockWebRTCPeerConnectionHandler::getStats in a follow-up instead 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
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 bool addICECandidate(const blink::WebRTCICECandidate& candidate) override; 139 bool addICECandidate(const blink::WebRTCICECandidate& candidate) override;
140 bool addICECandidate(const blink::WebRTCVoidRequest& request, 140 bool addICECandidate(const blink::WebRTCVoidRequest& request,
141 const blink::WebRTCICECandidate& candidate) override; 141 const blink::WebRTCICECandidate& candidate) override;
142 virtual void OnaddICECandidateResult(const blink::WebRTCVoidRequest& request, 142 virtual void OnaddICECandidateResult(const blink::WebRTCVoidRequest& request,
143 bool result); 143 bool result);
144 144
145 bool addStream(const blink::WebMediaStream& stream, 145 bool addStream(const blink::WebMediaStream& stream,
146 const blink::WebMediaConstraints& options) override; 146 const blink::WebMediaConstraints& options) override;
147 void removeStream(const blink::WebMediaStream& stream) override; 147 void removeStream(const blink::WebMediaStream& stream) override;
148 void getStats(const blink::WebRTCStatsRequest& request) override; 148 void getStats(const blink::WebRTCStatsRequest& request) override;
149 void getStats(
150 std::unique_ptr<blink::WebRTCStatsReportCallback> callback) override;
149 blink::WebRTCDataChannelHandler* createDataChannel( 151 blink::WebRTCDataChannelHandler* createDataChannel(
150 const blink::WebString& label, 152 const blink::WebString& label,
151 const blink::WebRTCDataChannelInit& init) override; 153 const blink::WebRTCDataChannelInit& init) override;
152 blink::WebRTCDTMFSenderHandler* createDTMFSender( 154 blink::WebRTCDTMFSenderHandler* createDTMFSender(
153 const blink::WebMediaStreamTrack& track) override; 155 const blink::WebMediaStreamTrack& track) override;
154 void stop() override; 156 void stop() override;
155 157
156 // Delegate functions to allow for mocking of WebKit interfaces. 158 // Delegate functions to allow for mocking of WebKit interfaces.
157 // getStats takes ownership of request parameter. 159 // getStats takes ownership of request parameter.
158 virtual void getStats(const scoped_refptr<LocalRTCStatsRequest>& request); 160 virtual void getStats(const scoped_refptr<LocalRTCStatsRequest>& request);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; 288 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {};
287 289
288 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; 290 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_;
289 291
290 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); 292 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler);
291 }; 293 };
292 294
293 } // namespace content 295 } // namespace content
294 296
295 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ 297 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698