Index: third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp |
index a04a056d66d19b09a363246f0b95c4b1c64ee95b..9750a6b691dd93d61d8d42f3727c742d9804459e 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp |
@@ -135,13 +135,13 @@ void MediaElementAudioSourceHandler::onCurrentSrcChanged(const KURL& currentSrc) |
bool MediaElementAudioSourceHandler::passesCurrentSrcCORSAccessCheck(const KURL& currentSrc) |
{ |
ASSERT(isMainThread()); |
- return context()->securityOrigin() && context()->securityOrigin()->canRequest(currentSrc); |
+ return context()->getSecurityOrigin() && context()->getSecurityOrigin()->canRequest(currentSrc); |
} |
void MediaElementAudioSourceHandler::printCORSMessage(const String& message) |
{ |
- if (context()->executionContext()) { |
- context()->executionContext()->addConsoleMessage( |
+ if (context()->getExecutionContext()) { |
+ context()->getExecutionContext()->addConsoleMessage( |
ConsoleMessage::create(SecurityMessageSource, InfoMessageLevel, |
"MediaElementAudioSource outputs zeroes due to CORS access restrictions for " + message)); |
} |
@@ -160,7 +160,7 @@ void MediaElementAudioSourceHandler::process(size_t numberOfFrames) |
outputBus->zero(); |
return; |
} |
- AudioSourceProvider& provider = mediaElement()->audioSourceProvider(); |
+ AudioSourceProvider& provider = mediaElement()->getAudioSourceProvider(); |
// Grab data from the provider so that the element continues to make progress, even if |
// we're going to output silence anyway. |
if (m_multiChannelResampler.get()) { |
@@ -177,8 +177,8 @@ void MediaElementAudioSourceHandler::process(size_t numberOfFrames) |
// Print a CORS message, but just once for each change in the current media |
// element source, and only if we have a document to print to. |
m_maybePrintCORSMessage = false; |
- if (context()->executionContext()) { |
- context()->executionContext()->postTask(BLINK_FROM_HERE, |
+ if (context()->getExecutionContext()) { |
+ context()->getExecutionContext()->postTask(BLINK_FROM_HERE, |
createCrossThreadTask(&MediaElementAudioSourceHandler::printCORSMessage, |
this, |
m_currentSrcString)); |