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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h

Issue 2095643002: Add RTCPeerConnection RAPPOR metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: record metrics only for connected PCs Created 4 years, 5 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState) ; 191 void changeSignalingState(WebRTCPeerConnectionHandlerClient::SignalingState) ;
192 void changeIceGatheringState(WebRTCPeerConnectionHandlerClient::ICEGathering State); 192 void changeIceGatheringState(WebRTCPeerConnectionHandlerClient::ICEGathering State);
193 // Changes the state immediately; does not fire an event. 193 // Changes the state immediately; does not fire an event.
194 // Returns true if the state was changed. 194 // Returns true if the state was changed.
195 bool setIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnectionS tate); 195 bool setIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnectionS tate);
196 // Changes the state asynchronously and fires an event immediately after cha nging the state. 196 // Changes the state asynchronously and fires an event immediately after cha nging the state.
197 void changeIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnecti onState); 197 void changeIceConnectionState(WebRTCPeerConnectionHandlerClient::ICEConnecti onState);
198 198
199 void closeInternal(); 199 void closeInternal();
200 200
201 void recordRapporMetrics();
202
201 SignalingState m_signalingState; 203 SignalingState m_signalingState;
202 ICEGatheringState m_iceGatheringState; 204 ICEGatheringState m_iceGatheringState;
203 ICEConnectionState m_iceConnectionState; 205 ICEConnectionState m_iceConnectionState;
204 206
205 MediaStreamVector m_localStreams; 207 MediaStreamVector m_localStreams;
206 MediaStreamVector m_remoteStreams; 208 MediaStreamVector m_remoteStreams;
207 209
208 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler; 210 std::unique_ptr<WebRTCPeerConnectionHandler> m_peerHandler;
209 211
210 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner; 212 Member<AsyncMethodRunner<RTCPeerConnection>> m_dispatchScheduledEventRunner;
211 HeapVector<Member<EventWrapper>> m_scheduledEvents; 213 HeapVector<Member<EventWrapper>> m_scheduledEvents;
212 214
213 bool m_stopped; 215 bool m_stopped;
214 bool m_closed; 216 bool m_closed;
217
218 bool m_hasDataChannels; // For RAPPOR metrics
215 }; 219 };
216 220
217 } // namespace blink 221 } // namespace blink
218 222
219 #endif // RTCPeerConnection_h 223 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698