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

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

Issue 2677233002: Expose RTCPeerConnection.icegatheringstatechange. (Closed)
Patch Set: add onicegatheringstatechange test Created 3 years, 10 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // We allow getStats after close, but not other calls or callbacks. 158 // We allow getStats after close, but not other calls or callbacks.
159 bool shouldFireDefaultCallbacks() { return !m_closed && !m_stopped; } 159 bool shouldFireDefaultCallbacks() { return !m_closed && !m_stopped; }
160 bool shouldFireGetStatsCallback() { return !m_stopped; } 160 bool shouldFireGetStatsCallback() { return !m_stopped; }
161 161
162 DEFINE_ATTRIBUTE_EVENT_LISTENER(negotiationneeded); 162 DEFINE_ATTRIBUTE_EVENT_LISTENER(negotiationneeded);
163 DEFINE_ATTRIBUTE_EVENT_LISTENER(icecandidate); 163 DEFINE_ATTRIBUTE_EVENT_LISTENER(icecandidate);
164 DEFINE_ATTRIBUTE_EVENT_LISTENER(signalingstatechange); 164 DEFINE_ATTRIBUTE_EVENT_LISTENER(signalingstatechange);
165 DEFINE_ATTRIBUTE_EVENT_LISTENER(addstream); 165 DEFINE_ATTRIBUTE_EVENT_LISTENER(addstream);
166 DEFINE_ATTRIBUTE_EVENT_LISTENER(removestream); 166 DEFINE_ATTRIBUTE_EVENT_LISTENER(removestream);
167 DEFINE_ATTRIBUTE_EVENT_LISTENER(iceconnectionstatechange); 167 DEFINE_ATTRIBUTE_EVENT_LISTENER(iceconnectionstatechange);
168 DEFINE_ATTRIBUTE_EVENT_LISTENER(icegatheringstatechange);
168 DEFINE_ATTRIBUTE_EVENT_LISTENER(datachannel); 169 DEFINE_ATTRIBUTE_EVENT_LISTENER(datachannel);
169 170
170 // WebRTCPeerConnectionHandlerClient 171 // WebRTCPeerConnectionHandlerClient
171 void negotiationNeeded() override; 172 void negotiationNeeded() override;
172 void didGenerateICECandidate(const WebRTCICECandidate&) override; 173 void didGenerateICECandidate(const WebRTCICECandidate&) override;
173 void didChangeSignalingState(SignalingState) override; 174 void didChangeSignalingState(SignalingState) override;
174 void didChangeICEGatheringState(ICEGatheringState) override; 175 void didChangeICEGatheringState(ICEGatheringState) override;
175 void didChangeICEConnectionState(ICEConnectionState) override; 176 void didChangeICEConnectionState(ICEConnectionState) override;
176 void didAddRemoteStream(const WebMediaStream&) override; 177 void didAddRemoteStream(const WebMediaStream&) override;
177 void didRemoveRemoteStream(const WebMediaStream&) override; 178 void didRemoveRemoteStream(const WebMediaStream&) override;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 253
253 bool m_stopped; 254 bool m_stopped;
254 bool m_closed; 255 bool m_closed;
255 256
256 bool m_hasDataChannels; // For RAPPOR metrics 257 bool m_hasDataChannels; // For RAPPOR metrics
257 }; 258 };
258 259
259 } // namespace blink 260 } // namespace blink
260 261
261 #endif // RTCPeerConnection_h 262 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698