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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #include "modules/webaudio/OfflineAudioContext.h" | 60 #include "modules/webaudio/OfflineAudioContext.h" |
61 #include "modules/webaudio/OfflineAudioDestinationNode.h" | 61 #include "modules/webaudio/OfflineAudioDestinationNode.h" |
62 #include "modules/webaudio/OscillatorNode.h" | 62 #include "modules/webaudio/OscillatorNode.h" |
63 #include "modules/webaudio/PannerNode.h" | 63 #include "modules/webaudio/PannerNode.h" |
64 #include "modules/webaudio/PeriodicWave.h" | 64 #include "modules/webaudio/PeriodicWave.h" |
65 #include "modules/webaudio/ScriptProcessorNode.h" | 65 #include "modules/webaudio/ScriptProcessorNode.h" |
66 #include "modules/webaudio/StereoPannerNode.h" | 66 #include "modules/webaudio/StereoPannerNode.h" |
67 #include "modules/webaudio/WaveShaperNode.h" | 67 #include "modules/webaudio/WaveShaperNode.h" |
68 #include "platform/audio/FFTFrame.h" | 68 #include "platform/audio/FFTFrame.h" |
69 #include "platform/audio/HRTFPanner.h" | 69 #include "platform/audio/HRTFPanner.h" |
| 70 #include "platform/weborigin/SecurityOrigin.h" |
70 #include "wtf/Atomics.h" | 71 #include "wtf/Atomics.h" |
71 #include "wtf/PassOwnPtr.h" | 72 #include "wtf/PassOwnPtr.h" |
72 #include "wtf/text/WTFString.h" | 73 #include "wtf/text/WTFString.h" |
73 | 74 |
74 #if DEBUG_AUDIONODE_REFERENCES | 75 #if DEBUG_AUDIONODE_REFERENCES |
75 #include <stdio.h> | 76 #include <stdio.h> |
76 #endif | 77 #endif |
77 | 78 |
78 namespace blink { | 79 namespace blink { |
79 | 80 |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 void AudioContext::updateChangedChannelCountMode() | 1143 void AudioContext::updateChangedChannelCountMode() |
1143 { | 1144 { |
1144 ASSERT(isGraphOwner()); | 1145 ASSERT(isGraphOwner()); |
1145 | 1146 |
1146 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k
!= m_deferredCountModeChange.end(); ++k) | 1147 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k
!= m_deferredCountModeChange.end(); ++k) |
1147 (*k)->updateChannelCountMode(); | 1148 (*k)->updateChannelCountMode(); |
1148 | 1149 |
1149 m_deferredCountModeChange.clear(); | 1150 m_deferredCountModeChange.clear(); |
1150 } | 1151 } |
1151 | 1152 |
| 1153 SecurityOrigin* AudioContext::securityOrigin() const |
| 1154 { |
| 1155 return executionContext()->securityOrigin(); |
| 1156 } |
| 1157 |
1152 } // namespace blink | 1158 } // namespace blink |
1153 | 1159 |
1154 #endif // ENABLE(WEB_AUDIO) | 1160 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |