| 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 22 matching lines...) Expand all Loading... |
| 33 #include "modules/mediastream/RTCSessionDescriptionRequestImpl.h" | 33 #include "modules/mediastream/RTCSessionDescriptionRequestImpl.h" |
| 34 | 34 |
| 35 #include "modules/mediastream/RTCErrorCallback.h" | 35 #include "modules/mediastream/RTCErrorCallback.h" |
| 36 #include "modules/mediastream/RTCPeerConnection.h" | 36 #include "modules/mediastream/RTCPeerConnection.h" |
| 37 #include "modules/mediastream/RTCSessionDescription.h" | 37 #include "modules/mediastream/RTCSessionDescription.h" |
| 38 #include "modules/mediastream/RTCSessionDescriptionCallback.h" | 38 #include "modules/mediastream/RTCSessionDescriptionCallback.h" |
| 39 #include "public/platform/WebRTCSessionDescription.h" | 39 #include "public/platform/WebRTCSessionDescription.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 PassRefPtr<RTCSessionDescriptionRequestImpl> RTCSessionDescriptionRequestImpl::c
reate(ExecutionContext* context, PassRefPtr<RTCSessionDescriptionCallback> succe
ssCallback, PassRefPtr<RTCErrorCallback> errorCallback) | 43 PassRefPtr<RTCSessionDescriptionRequestImpl> RTCSessionDescriptionRequestImpl::c
reate(ExecutionContext* context, PassOwnPtr<RTCSessionDescriptionCallback> succe
ssCallback, PassOwnPtr<RTCErrorCallback> errorCallback) |
| 44 { | 44 { |
| 45 RefPtr<RTCSessionDescriptionRequestImpl> request = adoptRef(new RTCSessionDe
scriptionRequestImpl(context, successCallback, errorCallback)); | 45 RefPtr<RTCSessionDescriptionRequestImpl> request = adoptRef(new RTCSessionDe
scriptionRequestImpl(context, successCallback, errorCallback)); |
| 46 request->suspendIfNeeded(); | 46 request->suspendIfNeeded(); |
| 47 return request.release(); | 47 return request.release(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl(ExecutionCont
ext* context, PassRefPtr<RTCSessionDescriptionCallback> successCallback, PassRef
Ptr<RTCErrorCallback> errorCallback) | 50 RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl(ExecutionCont
ext* context, PassOwnPtr<RTCSessionDescriptionCallback> successCallback, PassOwn
Ptr<RTCErrorCallback> errorCallback) |
| 51 : ActiveDOMObject(context) | 51 : ActiveDOMObject(context) |
| 52 , m_successCallback(successCallback) | 52 , m_successCallback(successCallback) |
| 53 , m_errorCallback(errorCallback) | 53 , m_errorCallback(errorCallback) |
| 54 { | 54 { |
| 55 } | 55 } |
| 56 | 56 |
| 57 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() | 57 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() |
| 58 { | 58 { |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 81 clear(); | 81 clear(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void RTCSessionDescriptionRequestImpl::clear() | 84 void RTCSessionDescriptionRequestImpl::clear() |
| 85 { | 85 { |
| 86 m_successCallback.clear(); | 86 m_successCallback.clear(); |
| 87 m_errorCallback.clear(); | 87 m_errorCallback.clear(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace WebCore | 90 } // namespace WebCore |
| OLD | NEW |