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

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

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

Powered by Google App Engine
This is Rietveld 408576698