| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/dom/TaskRunnerHelper.h" | 28 #include "core/dom/TaskRunnerHelper.h" |
| 29 #include "core/html/HTMLMediaElement.h" | 29 #include "core/html/HTMLMediaElement.h" |
| 30 #include "core/inspector/ConsoleMessage.h" | 30 #include "core/inspector/ConsoleMessage.h" |
| 31 #include "modules/webaudio/AudioNodeOutput.h" | 31 #include "modules/webaudio/AudioNodeOutput.h" |
| 32 #include "modules/webaudio/BaseAudioContext.h" | 32 #include "modules/webaudio/BaseAudioContext.h" |
| 33 #include "modules/webaudio/MediaElementAudioSourceOptions.h" | 33 #include "modules/webaudio/MediaElementAudioSourceOptions.h" |
| 34 #include "platform/CrossThreadFunctional.h" | 34 #include "platform/CrossThreadFunctional.h" |
| 35 #include "platform/audio/AudioUtilities.h" | 35 #include "platform/audio/AudioUtilities.h" |
| 36 #include "platform/weborigin/SecurityOrigin.h" | 36 #include "platform/weborigin/SecurityOrigin.h" |
| 37 #include "wtf/Locker.h" | 37 #include "platform/wtf/Locker.h" |
| 38 #include "wtf/PtrUtil.h" | 38 #include "platform/wtf/PtrUtil.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 MediaElementAudioSourceHandler::MediaElementAudioSourceHandler( | 42 MediaElementAudioSourceHandler::MediaElementAudioSourceHandler( |
| 43 AudioNode& node, | 43 AudioNode& node, |
| 44 HTMLMediaElement& media_element) | 44 HTMLMediaElement& media_element) |
| 45 : AudioHandler(kNodeTypeMediaElementAudioSource, | 45 : AudioHandler(kNodeTypeMediaElementAudioSource, |
| 46 node, | 46 node, |
| 47 node.context()->sampleRate()), | 47 node.context()->sampleRate()), |
| 48 media_element_(media_element), | 48 media_element_(media_element), |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 void MediaElementAudioSourceNode::lock() { | 303 void MediaElementAudioSourceNode::lock() { |
| 304 GetMediaElementAudioSourceHandler().lock(); | 304 GetMediaElementAudioSourceHandler().lock(); |
| 305 } | 305 } |
| 306 | 306 |
| 307 void MediaElementAudioSourceNode::unlock() { | 307 void MediaElementAudioSourceNode::unlock() { |
| 308 GetMediaElementAudioSourceHandler().unlock(); | 308 GetMediaElementAudioSourceHandler().unlock(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace blink | 311 } // namespace blink |
| OLD | NEW |