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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 didClose(); 190 didClose();
191 191
192 DCHECK(m_listener); 192 DCHECK(m_listener);
193 m_listener->waitForHRTFDatabaseLoaderThreadCompletion(); 193 m_listener->waitForHRTFDatabaseLoaderThreadCompletion();
194 194
195 recordAutoplayStatus(); 195 recordAutoplayStatus();
196 196
197 clear(); 197 clear();
198 } 198 }
199 199
200 void BaseAudioContext::contextDestroyed() { 200 void BaseAudioContext::contextDestroyed(ExecutionContext*) {
201 uninitialize(); 201 uninitialize();
202 } 202 }
203 203
204 bool BaseAudioContext::hasPendingActivity() const { 204 bool BaseAudioContext::hasPendingActivity() const {
205 // There's no pending activity if the audio context has been cleared. 205 // There's no pending activity if the audio context has been cleared.
206 return !m_isCleared; 206 return !m_isCleared;
207 } 207 }
208 208
209 AudioDestinationNode* BaseAudioContext::destination() const { 209 AudioDestinationNode* BaseAudioContext::destination() const {
210 // Cannot be called from the audio thread because this method touches objects 210 // Cannot be called from the audio thread because this method touches objects
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 } 892 }
893 893
894 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { 894 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const {
895 if (getExecutionContext()) 895 if (getExecutionContext())
896 return getExecutionContext()->getSecurityOrigin(); 896 return getExecutionContext()->getSecurityOrigin();
897 897
898 return nullptr; 898 return nullptr;
899 } 899 }
900 900
901 } // namespace blink 901 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698