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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 m_resolver->reject(); 121 m_resolver->reject();
122 delete this; 122 delete this;
123 } 123 }
124 124
125 Persistent<ScriptPromiseResolver> m_resolver; 125 Persistent<ScriptPromiseResolver> m_resolver;
126 }; 126 };
127 127
128 } // namespace 128 } // namespace
129 129
130 RTCPeerConnection::EventWrapper::EventWrapper( 130 RTCPeerConnection::EventWrapper::EventWrapper(
131 PassRefPtrWillBeRawPtr<Event> event, 131 RawPtr<Event> event,
132 PassOwnPtr<BoolFunction> function) 132 PassOwnPtr<BoolFunction> function)
133 : m_event(event) 133 : m_event(event)
134 , m_setupFunction(function) 134 , m_setupFunction(function)
135 { 135 {
136 } 136 }
137 137
138 bool RTCPeerConnection::EventWrapper::setup() 138 bool RTCPeerConnection::EventWrapper::setup()
139 { 139 {
140 if (m_setupFunction) { 140 if (m_setupFunction) {
141 return (*m_setupFunction)(); 141 return (*m_setupFunction)();
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 { 1007 {
1008 ASSERT(m_signalingState != RTCPeerConnection::SignalingStateClosed); 1008 ASSERT(m_signalingState != RTCPeerConnection::SignalingStateClosed);
1009 m_peerHandler->stop(); 1009 m_peerHandler->stop();
1010 m_closed = true; 1010 m_closed = true;
1011 1011
1012 changeIceConnectionState(ICEConnectionStateClosed); 1012 changeIceConnectionState(ICEConnectionStateClosed);
1013 changeIceGatheringState(ICEGatheringStateComplete); 1013 changeIceGatheringState(ICEGatheringStateComplete);
1014 changeSignalingState(SignalingStateClosed); 1014 changeSignalingState(SignalingStateClosed);
1015 } 1015 }
1016 1016
1017 void RTCPeerConnection::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> even t) 1017 void RTCPeerConnection::scheduleDispatchEvent(RawPtr<Event> event)
1018 { 1018 {
1019 scheduleDispatchEvent(event, nullptr); 1019 scheduleDispatchEvent(event, nullptr);
1020 } 1020 }
1021 1021
1022 void RTCPeerConnection::scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event> even t, 1022 void RTCPeerConnection::scheduleDispatchEvent(RawPtr<Event> event,
1023 PassOwnPtr<BoolFunction> setupFunction) 1023 PassOwnPtr<BoolFunction> setupFunction)
1024 { 1024 {
1025 m_scheduledEvents.append(new EventWrapper(event, setupFunction)); 1025 m_scheduledEvents.append(new EventWrapper(event, setupFunction));
1026 1026
1027 m_dispatchScheduledEventRunner->runAsync(); 1027 m_dispatchScheduledEventRunner->runAsync();
1028 } 1028 }
1029 1029
1030 void RTCPeerConnection::dispatchScheduledEvent() 1030 void RTCPeerConnection::dispatchScheduledEvent()
1031 { 1031 {
1032 if (m_stopped) 1032 if (m_stopped)
(...skipping 16 matching lines...) Expand all
1049 { 1049 {
1050 visitor->trace(m_localStreams); 1050 visitor->trace(m_localStreams);
1051 visitor->trace(m_remoteStreams); 1051 visitor->trace(m_remoteStreams);
1052 visitor->trace(m_dispatchScheduledEventRunner); 1052 visitor->trace(m_dispatchScheduledEventRunner);
1053 visitor->trace(m_scheduledEvents); 1053 visitor->trace(m_scheduledEvents);
1054 RefCountedGarbageCollectedEventTargetWithInlineData<RTCPeerConnection>::trac e(visitor); 1054 RefCountedGarbageCollectedEventTargetWithInlineData<RTCPeerConnection>::trac e(visitor);
1055 ActiveDOMObject::trace(visitor); 1055 ActiveDOMObject::trace(visitor);
1056 } 1056 }
1057 1057
1058 } // namespace blink 1058 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698