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

Side by Side Diff: Source/modules/webaudio/AudioContext.cpp

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webmidi/MIDIAccessPromise.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 SyntaxError, 354 SyntaxError,
355 ExceptionMessages::failedToConstruct( 355 ExceptionMessages::failedToConstruct(
356 "AudioBuffer", 356 "AudioBuffer",
357 "invalid audio data in ArrayBuffer.")); 357 "invalid audio data in ArrayBuffer."));
358 return 0; 358 return 0;
359 } 359 }
360 360
361 return audioBuffer; 361 return audioBuffer;
362 } 362 }
363 363
364 void AudioContext::decodeAudioData(ArrayBuffer* audioData, PassRefPtr<AudioBuffe rCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback, Excep tionState& exceptionState) 364 void AudioContext::decodeAudioData(ArrayBuffer* audioData, PassOwnPtr<AudioBuffe rCallback> successCallback, PassOwnPtr<AudioBufferCallback> errorCallback, Excep tionState& exceptionState)
365 { 365 {
366 if (!audioData) { 366 if (!audioData) {
367 exceptionState.throwDOMException( 367 exceptionState.throwDOMException(
368 SyntaxError, 368 SyntaxError,
369 ExceptionMessages::failedToExecute( 369 ExceptionMessages::failedToExecute(
370 "decodeAudioData", 370 "decodeAudioData",
371 "AudioContext", 371 "AudioContext",
372 "invalid ArrayBuffer for audioData.")); 372 "invalid ArrayBuffer for audioData."));
373 return; 373 return;
374 } 374 }
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 } 1102 }
1103 1103
1104 void AudioContext::decrementActiveSourceCount() 1104 void AudioContext::decrementActiveSourceCount()
1105 { 1105 {
1106 atomicDecrement(&m_activeSourceCount); 1106 atomicDecrement(&m_activeSourceCount);
1107 } 1107 }
1108 1108
1109 } // namespace WebCore 1109 } // namespace WebCore
1110 1110
1111 #endif // ENABLE(WEB_AUDIO) 1111 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webmidi/MIDIAccessPromise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698