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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "modules/mediastream/RTCStatsRequestImpl.h" | 26 #include "modules/mediastream/RTCStatsRequestImpl.h" |
27 | 27 |
28 #include "modules/mediastream/MediaStreamTrack.h" | 28 #include "modules/mediastream/MediaStreamTrack.h" |
29 #include "modules/mediastream/RTCPeerConnection.h" | 29 #include "modules/mediastream/RTCPeerConnection.h" |
30 #include "modules/mediastream/RTCStatsCallback.h" | 30 #include "modules/mediastream/RTCStatsCallback.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace blink { |
33 | 33 |
34 PassRefPtr<RTCStatsRequestImpl> RTCStatsRequestImpl::create(ExecutionContext* co
ntext, RTCPeerConnection* requester, PassOwnPtr<RTCStatsCallback> callback, Medi
aStreamTrack* selector) | 34 PassRefPtr<RTCStatsRequestImpl> RTCStatsRequestImpl::create(ExecutionContext* co
ntext, RTCPeerConnection* requester, PassOwnPtr<RTCStatsCallback> callback, Medi
aStreamTrack* selector) |
35 { | 35 { |
36 RefPtr<RTCStatsRequestImpl> request = adoptRef(new RTCStatsRequestImpl(conte
xt, requester, callback, selector)); | 36 RefPtr<RTCStatsRequestImpl> request = adoptRef(new RTCStatsRequestImpl(conte
xt, requester, callback, selector)); |
37 request->suspendIfNeeded(); | 37 request->suspendIfNeeded(); |
38 return request.release(); | 38 return request.release(); |
39 } | 39 } |
40 | 40 |
41 RTCStatsRequestImpl::RTCStatsRequestImpl(ExecutionContext* context, RTCPeerConne
ction* requester, PassOwnPtr<RTCStatsCallback> callback, MediaStreamTrack* selec
tor) | 41 RTCStatsRequestImpl::RTCStatsRequestImpl(ExecutionContext* context, RTCPeerConne
ction* requester, PassOwnPtr<RTCStatsCallback> callback, MediaStreamTrack* selec
tor) |
42 : ActiveDOMObject(context) | 42 : ActiveDOMObject(context) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 { | 78 { |
79 clear(); | 79 clear(); |
80 } | 80 } |
81 | 81 |
82 void RTCStatsRequestImpl::clear() | 82 void RTCStatsRequestImpl::clear() |
83 { | 83 { |
84 m_successCallback.clear(); | 84 m_successCallback.clear(); |
85 m_requester.clear(); | 85 m_requester.clear(); |
86 } | 86 } |
87 | 87 |
88 } // namespace WebCore | 88 } // namespace blink |
OLD | NEW |