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

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

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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 * 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 26 matching lines...) Expand all
37 RTCStatsRequestImpl* request = 37 RTCStatsRequestImpl* request =
38 new RTCStatsRequestImpl(context, requester, callback, selector); 38 new RTCStatsRequestImpl(context, requester, callback, selector);
39 request->suspendIfNeeded(); 39 request->suspendIfNeeded();
40 return request; 40 return request;
41 } 41 }
42 42
43 RTCStatsRequestImpl::RTCStatsRequestImpl(ExecutionContext* context, 43 RTCStatsRequestImpl::RTCStatsRequestImpl(ExecutionContext* context,
44 RTCPeerConnection* requester, 44 RTCPeerConnection* requester,
45 RTCStatsCallback* callback, 45 RTCStatsCallback* callback,
46 MediaStreamTrack* selector) 46 MediaStreamTrack* selector)
47 : ActiveDOMObject(context), 47 : SuspendableObject(context),
48 m_successCallback(callback), 48 m_successCallback(callback),
49 m_component(selector ? selector->component() : 0), 49 m_component(selector ? selector->component() : 0),
50 m_requester(requester) { 50 m_requester(requester) {
51 DCHECK(m_requester); 51 DCHECK(m_requester);
52 } 52 }
53 53
54 RTCStatsRequestImpl::~RTCStatsRequestImpl() {} 54 RTCStatsRequestImpl::~RTCStatsRequestImpl() {}
55 55
56 RTCStatsResponseBase* RTCStatsRequestImpl::createResponse() { 56 RTCStatsResponseBase* RTCStatsRequestImpl::createResponse() {
57 return RTCStatsResponse::create(); 57 return RTCStatsResponse::create();
(...skipping 22 matching lines...) Expand all
80 void RTCStatsRequestImpl::clear() { 80 void RTCStatsRequestImpl::clear() {
81 m_successCallback.clear(); 81 m_successCallback.clear();
82 m_requester.clear(); 82 m_requester.clear();
83 } 83 }
84 84
85 DEFINE_TRACE(RTCStatsRequestImpl) { 85 DEFINE_TRACE(RTCStatsRequestImpl) {
86 visitor->trace(m_successCallback); 86 visitor->trace(m_successCallback);
87 visitor->trace(m_component); 87 visitor->trace(m_component);
88 visitor->trace(m_requester); 88 visitor->trace(m_requester);
89 RTCStatsRequest::trace(visitor); 89 RTCStatsRequest::trace(visitor);
90 ActiveDOMObject::trace(visitor); 90 SuspendableObject::trace(visitor);
91 } 91 }
92 92
93 } // namespace blink 93 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698