| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 context, requester, successCallback, errorCallback); | 47 context, requester, successCallback, errorCallback); |
| 48 request->suspendIfNeeded(); | 48 request->suspendIfNeeded(); |
| 49 return request; | 49 return request; |
| 50 } | 50 } |
| 51 | 51 |
| 52 RTCVoidRequestImpl::RTCVoidRequestImpl( | 52 RTCVoidRequestImpl::RTCVoidRequestImpl( |
| 53 ExecutionContext* context, | 53 ExecutionContext* context, |
| 54 RTCPeerConnection* requester, | 54 RTCPeerConnection* requester, |
| 55 VoidCallback* successCallback, | 55 VoidCallback* successCallback, |
| 56 RTCPeerConnectionErrorCallback* errorCallback) | 56 RTCPeerConnectionErrorCallback* errorCallback) |
| 57 : ActiveDOMObject(context), | 57 : SuspendableObject(context), |
| 58 m_successCallback(successCallback), | 58 m_successCallback(successCallback), |
| 59 m_errorCallback(errorCallback), | 59 m_errorCallback(errorCallback), |
| 60 m_requester(requester) { | 60 m_requester(requester) { |
| 61 DCHECK(m_requester); | 61 DCHECK(m_requester); |
| 62 } | 62 } |
| 63 | 63 |
| 64 RTCVoidRequestImpl::~RTCVoidRequestImpl() {} | 64 RTCVoidRequestImpl::~RTCVoidRequestImpl() {} |
| 65 | 65 |
| 66 void RTCVoidRequestImpl::requestSucceeded() { | 66 void RTCVoidRequestImpl::requestSucceeded() { |
| 67 bool shouldFireCallback = | 67 bool shouldFireCallback = |
| (...skipping 24 matching lines...) Expand all Loading... |
| 92 m_successCallback.clear(); | 92 m_successCallback.clear(); |
| 93 m_errorCallback.clear(); | 93 m_errorCallback.clear(); |
| 94 m_requester.clear(); | 94 m_requester.clear(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 DEFINE_TRACE(RTCVoidRequestImpl) { | 97 DEFINE_TRACE(RTCVoidRequestImpl) { |
| 98 visitor->trace(m_successCallback); | 98 visitor->trace(m_successCallback); |
| 99 visitor->trace(m_errorCallback); | 99 visitor->trace(m_errorCallback); |
| 100 visitor->trace(m_requester); | 100 visitor->trace(m_requester); |
| 101 RTCVoidRequest::trace(visitor); | 101 RTCVoidRequest::trace(visitor); |
| 102 ActiveDOMObject::trace(visitor); | 102 SuspendableObject::trace(visitor); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |