| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 23 * DAMAGE. | 23 * DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/webaudio/BaseAudioContext.h" | 26 #include "modules/webaudio/BaseAudioContext.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/Dictionary.h" | 28 #include "bindings/core/v8/Dictionary.h" |
| 29 #include "bindings/core/v8/ExceptionMessages.h" | 29 #include "bindings/core/v8/ExceptionMessages.h" |
| 30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
| 31 #include "bindings/core/v8/ScriptPromiseResolver.h" | 31 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 32 #include "bindings/core/v8/ScriptState.h" | |
| 33 #include "bindings/modules/v8/DecodeErrorCallback.h" | 32 #include "bindings/modules/v8/DecodeErrorCallback.h" |
| 34 #include "bindings/modules/v8/DecodeSuccessCallback.h" | 33 #include "bindings/modules/v8/DecodeSuccessCallback.h" |
| 35 #include "core/dom/DOMException.h" | 34 #include "core/dom/DOMException.h" |
| 36 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 37 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
| 38 #include "core/dom/TaskRunnerHelper.h" | 37 #include "core/dom/TaskRunnerHelper.h" |
| 39 #include "core/frame/Settings.h" | 38 #include "core/frame/Settings.h" |
| 40 #include "core/html/HTMLMediaElement.h" | 39 #include "core/html/HTMLMediaElement.h" |
| 41 #include "core/inspector/ConsoleMessage.h" | 40 #include "core/inspector/ConsoleMessage.h" |
| 42 #include "core/inspector/ConsoleTypes.h" | 41 #include "core/inspector/ConsoleTypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 67 #include "modules/webaudio/PannerNode.h" | 66 #include "modules/webaudio/PannerNode.h" |
| 68 #include "modules/webaudio/PeriodicWave.h" | 67 #include "modules/webaudio/PeriodicWave.h" |
| 69 #include "modules/webaudio/PeriodicWaveConstraints.h" | 68 #include "modules/webaudio/PeriodicWaveConstraints.h" |
| 70 #include "modules/webaudio/ScriptProcessorNode.h" | 69 #include "modules/webaudio/ScriptProcessorNode.h" |
| 71 #include "modules/webaudio/StereoPannerNode.h" | 70 #include "modules/webaudio/StereoPannerNode.h" |
| 72 #include "modules/webaudio/WaveShaperNode.h" | 71 #include "modules/webaudio/WaveShaperNode.h" |
| 73 #include "platform/CrossThreadFunctional.h" | 72 #include "platform/CrossThreadFunctional.h" |
| 74 #include "platform/Histogram.h" | 73 #include "platform/Histogram.h" |
| 75 #include "platform/UserGestureIndicator.h" | 74 #include "platform/UserGestureIndicator.h" |
| 76 #include "platform/audio/IIRFilter.h" | 75 #include "platform/audio/IIRFilter.h" |
| 76 #include "platform/bindings/ScriptState.h" |
| 77 #include "platform/wtf/text/WTFString.h" | 77 #include "platform/wtf/text/WTFString.h" |
| 78 #include "public/platform/Platform.h" | 78 #include "public/platform/Platform.h" |
| 79 | 79 |
| 80 namespace blink { | 80 namespace blink { |
| 81 | 81 |
| 82 BaseAudioContext* BaseAudioContext::Create( | 82 BaseAudioContext* BaseAudioContext::Create( |
| 83 Document& document, | 83 Document& document, |
| 84 const AudioContextOptions& context_options, | 84 const AudioContextOptions& context_options, |
| 85 ExceptionState& exception_state) { | 85 ExceptionState& exception_state) { |
| 86 return AudioContext::Create(document, context_options, exception_state); | 86 return AudioContext::Create(document, context_options, exception_state); |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 } | 937 } |
| 938 | 938 |
| 939 SecurityOrigin* BaseAudioContext::GetSecurityOrigin() const { | 939 SecurityOrigin* BaseAudioContext::GetSecurityOrigin() const { |
| 940 if (GetExecutionContext()) | 940 if (GetExecutionContext()) |
| 941 return GetExecutionContext()->GetSecurityOrigin(); | 941 return GetExecutionContext()->GetSecurityOrigin(); |
| 942 | 942 |
| 943 return nullptr; | 943 return nullptr; |
| 944 } | 944 } |
| 945 | 945 |
| 946 } // namespace blink | 946 } // namespace blink |
| OLD | NEW |