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

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

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 selectedRtcpMuxPolicy); 481 selectedRtcpMuxPolicy);
482 482
483 return peerConnection; 483 return peerConnection;
484 } 484 }
485 485
486 RTCPeerConnection::RTCPeerConnection(ExecutionContext* context, 486 RTCPeerConnection::RTCPeerConnection(ExecutionContext* context,
487 const WebRTCConfiguration& configuration, 487 const WebRTCConfiguration& configuration,
488 WebMediaConstraints constraints, 488 WebMediaConstraints constraints,
489 ExceptionState& exceptionState) 489 ExceptionState& exceptionState)
490 : ActiveScriptWrappable(this), 490 : ActiveScriptWrappable(this),
491 ActiveDOMObject(context), 491 SuspendableObject(context),
492 m_signalingState(SignalingStateStable), 492 m_signalingState(SignalingStateStable),
493 m_iceGatheringState(ICEGatheringStateNew), 493 m_iceGatheringState(ICEGatheringStateNew),
494 m_iceConnectionState(ICEConnectionStateNew), 494 m_iceConnectionState(ICEConnectionStateNew),
495 m_dispatchScheduledEventRunner( 495 m_dispatchScheduledEventRunner(
496 AsyncMethodRunner<RTCPeerConnection>::create( 496 AsyncMethodRunner<RTCPeerConnection>::create(
497 this, 497 this,
498 &RTCPeerConnection::dispatchScheduledEvent)), 498 &RTCPeerConnection::dispatchScheduledEvent)),
499 m_stopped(false), 499 m_stopped(false),
500 m_closed(false), 500 m_closed(false),
501 m_hasDataChannels(false) { 501 m_hasDataChannels(false) {
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 void RTCPeerConnection::closePeerConnection() { 1357 void RTCPeerConnection::closePeerConnection() {
1358 DCHECK(m_signalingState != RTCPeerConnection::SignalingStateClosed); 1358 DCHECK(m_signalingState != RTCPeerConnection::SignalingStateClosed);
1359 closeInternal(); 1359 closeInternal();
1360 } 1360 }
1361 1361
1362 const AtomicString& RTCPeerConnection::interfaceName() const { 1362 const AtomicString& RTCPeerConnection::interfaceName() const {
1363 return EventTargetNames::RTCPeerConnection; 1363 return EventTargetNames::RTCPeerConnection;
1364 } 1364 }
1365 1365
1366 ExecutionContext* RTCPeerConnection::getExecutionContext() const { 1366 ExecutionContext* RTCPeerConnection::getExecutionContext() const {
1367 return ActiveDOMObject::getExecutionContext(); 1367 return SuspendableObject::getExecutionContext();
1368 } 1368 }
1369 1369
1370 void RTCPeerConnection::suspend() { 1370 void RTCPeerConnection::suspend() {
1371 m_dispatchScheduledEventRunner->suspend(); 1371 m_dispatchScheduledEventRunner->suspend();
1372 } 1372 }
1373 1373
1374 void RTCPeerConnection::resume() { 1374 void RTCPeerConnection::resume() {
1375 m_dispatchScheduledEventRunner->resume(); 1375 m_dispatchScheduledEventRunner->resume();
1376 } 1376 }
1377 1377
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 HostsUsingFeatures::countAnyWorld( 1487 HostsUsingFeatures::countAnyWorld(
1488 *document, HostsUsingFeatures::Feature::RTCPeerConnectionDataChannel); 1488 *document, HostsUsingFeatures::Feature::RTCPeerConnectionDataChannel);
1489 } 1489 }
1490 1490
1491 DEFINE_TRACE(RTCPeerConnection) { 1491 DEFINE_TRACE(RTCPeerConnection) {
1492 visitor->trace(m_localStreams); 1492 visitor->trace(m_localStreams);
1493 visitor->trace(m_remoteStreams); 1493 visitor->trace(m_remoteStreams);
1494 visitor->trace(m_dispatchScheduledEventRunner); 1494 visitor->trace(m_dispatchScheduledEventRunner);
1495 visitor->trace(m_scheduledEvents); 1495 visitor->trace(m_scheduledEvents);
1496 EventTargetWithInlineData::trace(visitor); 1496 EventTargetWithInlineData::trace(visitor);
1497 ActiveDOMObject::trace(visitor); 1497 SuspendableObject::trace(visitor);
1498 } 1498 }
1499 1499
1500 } // namespace blink 1500 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698