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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionRequestImpl.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 * 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 errorCallback); 51 errorCallback);
52 request->suspendIfNeeded(); 52 request->suspendIfNeeded();
53 return request; 53 return request;
54 } 54 }
55 55
56 RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl( 56 RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl(
57 ExecutionContext* context, 57 ExecutionContext* context,
58 RTCPeerConnection* requester, 58 RTCPeerConnection* requester,
59 RTCSessionDescriptionCallback* successCallback, 59 RTCSessionDescriptionCallback* successCallback,
60 RTCPeerConnectionErrorCallback* errorCallback) 60 RTCPeerConnectionErrorCallback* errorCallback)
61 : ActiveDOMObject(context), 61 : SuspendableObject(context),
62 m_successCallback(successCallback), 62 m_successCallback(successCallback),
63 m_errorCallback(errorCallback), 63 m_errorCallback(errorCallback),
64 m_requester(requester) { 64 m_requester(requester) {
65 DCHECK(m_requester); 65 DCHECK(m_requester);
66 } 66 }
67 67
68 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() {} 68 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() {}
69 69
70 void RTCSessionDescriptionRequestImpl::requestSucceeded( 70 void RTCSessionDescriptionRequestImpl::requestSucceeded(
71 const WebRTCSessionDescription& webSessionDescription) { 71 const WebRTCSessionDescription& webSessionDescription) {
(...skipping 22 matching lines...) Expand all
94 m_successCallback.clear(); 94 m_successCallback.clear();
95 m_errorCallback.clear(); 95 m_errorCallback.clear();
96 m_requester.clear(); 96 m_requester.clear();
97 } 97 }
98 98
99 DEFINE_TRACE(RTCSessionDescriptionRequestImpl) { 99 DEFINE_TRACE(RTCSessionDescriptionRequestImpl) {
100 visitor->trace(m_successCallback); 100 visitor->trace(m_successCallback);
101 visitor->trace(m_errorCallback); 101 visitor->trace(m_errorCallback);
102 visitor->trace(m_requester); 102 visitor->trace(m_requester);
103 RTCSessionDescriptionRequest::trace(visitor); 103 RTCSessionDescriptionRequest::trace(visitor);
104 ActiveDOMObject::trace(visitor); 104 SuspendableObject::trace(visitor);
105 } 105 }
106 106
107 } // namespace blink 107 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698