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

Unified Diff: third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 months 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 side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698