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

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

Issue 2108033005: Specify WTF:: prefix for bind() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 exceptionState.throwDOMException(InvalidStateError, kSignalingStateClose dMessage); 106 exceptionState.throwDOMException(InvalidStateError, kSignalingStateClose dMessage);
107 return true; 107 return true;
108 } 108 }
109 109
110 return false; 110 return false;
111 } 111 }
112 112
113 void asyncCallErrorCallback(RTCPeerConnectionErrorCallback* errorCallback, DOMEx ception* exception) 113 void asyncCallErrorCallback(RTCPeerConnectionErrorCallback* errorCallback, DOMEx ception* exception)
114 { 114 {
115 DCHECK(errorCallback); 115 DCHECK(errorCallback);
116 Microtask::enqueueMicrotask(bind(&RTCPeerConnectionErrorCallback::handleEven t, wrapPersistent(errorCallback), wrapPersistent(exception))); 116 Microtask::enqueueMicrotask(WTF::bind(&RTCPeerConnectionErrorCallback::handl eEvent, wrapPersistent(errorCallback), wrapPersistent(exception)));
117 } 117 }
118 118
119 bool callErrorCallbackIfSignalingStateClosed(RTCPeerConnection::SignalingState s tate, RTCPeerConnectionErrorCallback* errorCallback) 119 bool callErrorCallbackIfSignalingStateClosed(RTCPeerConnection::SignalingState s tate, RTCPeerConnectionErrorCallback* errorCallback)
120 { 120 {
121 if (state == RTCPeerConnection::SignalingStateClosed) { 121 if (state == RTCPeerConnection::SignalingStateClosed) {
122 if (errorCallback) 122 if (errorCallback)
123 asyncCallErrorCallback(errorCallback, DOMException::create(InvalidSt ateError, kSignalingStateClosedMessage)); 123 asyncCallErrorCallback(errorCallback, DOMException::create(InvalidSt ateError, kSignalingStateClosedMessage));
124 124
125 return true; 125 return true;
126 } 126 }
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 { 1229 {
1230 visitor->trace(m_localStreams); 1230 visitor->trace(m_localStreams);
1231 visitor->trace(m_remoteStreams); 1231 visitor->trace(m_remoteStreams);
1232 visitor->trace(m_dispatchScheduledEventRunner); 1232 visitor->trace(m_dispatchScheduledEventRunner);
1233 visitor->trace(m_scheduledEvents); 1233 visitor->trace(m_scheduledEvents);
1234 EventTargetWithInlineData::trace(visitor); 1234 EventTargetWithInlineData::trace(visitor);
1235 ActiveDOMObject::trace(visitor); 1235 ActiveDOMObject::trace(visitor);
1236 } 1236 }
1237 1237
1238 } // namespace blink 1238 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698