| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "modules/mediastream/RTCVoidRequestImpl.h" | 33 #include "modules/mediastream/RTCVoidRequestImpl.h" |
| 34 | 34 |
| 35 #include "core/html/VoidCallback.h" | 35 #include "core/html/VoidCallback.h" |
| 36 #include "modules/mediastream/RTCErrorCallback.h" | 36 #include "modules/mediastream/RTCErrorCallback.h" |
| 37 #include "modules/mediastream/RTCPeerConnection.h" | 37 #include "modules/mediastream/RTCPeerConnection.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 PassRefPtr<RTCVoidRequestImpl> RTCVoidRequestImpl::create(ExecutionContext* cont
ext, PassRefPtr<VoidCallback> successCallback, PassRefPtr<RTCErrorCallback> erro
rCallback) | 41 PassRefPtr<RTCVoidRequestImpl> RTCVoidRequestImpl::create(ExecutionContext* cont
ext, PassRefPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> erro
rCallback) |
| 42 { | 42 { |
| 43 RefPtr<RTCVoidRequestImpl> request = adoptRef(new RTCVoidRequestImpl(context
, successCallback, errorCallback)); | 43 RefPtr<RTCVoidRequestImpl> request = adoptRef(new RTCVoidRequestImpl(context
, successCallback, errorCallback)); |
| 44 request->suspendIfNeeded(); | 44 request->suspendIfNeeded(); |
| 45 return request.release(); | 45 return request.release(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 RTCVoidRequestImpl::RTCVoidRequestImpl(ExecutionContext* context, PassRefPtr<Voi
dCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback) | 48 RTCVoidRequestImpl::RTCVoidRequestImpl(ExecutionContext* context, PassRefPtr<Voi
dCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback) |
| 49 : ActiveDOMObject(context) | 49 : ActiveDOMObject(context) |
| 50 , m_successCallback(successCallback) | 50 , m_successCallback(successCallback) |
| 51 , m_errorCallback(errorCallback) | 51 , m_errorCallback(errorCallback) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 RTCVoidRequestImpl::~RTCVoidRequestImpl() | 55 RTCVoidRequestImpl::~RTCVoidRequestImpl() |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 77 clear(); | 77 clear(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void RTCVoidRequestImpl::clear() | 80 void RTCVoidRequestImpl::clear() |
| 81 { | 81 { |
| 82 m_successCallback.clear(); | 82 m_successCallback.clear(); |
| 83 m_errorCallback.clear(); | 83 m_errorCallback.clear(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace WebCore | 86 } // namespace WebCore |
| OLD | NEW |