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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 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 unified diff | Download patch
OLDNEW
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 if (newState == m_contextState) { 629 if (newState == m_contextState) {
630 // ASSERTs above failed; just return. 630 // ASSERTs above failed; just return.
631 return; 631 return;
632 } 632 }
633 633
634 m_contextState = newState; 634 m_contextState = newState;
635 635
636 // Notify context that state changed 636 // Notify context that state changed
637 if (executionContext()) 637 if (executionContext())
638 executionContext()->postTask(FROM_HERE, createSameThreadTask(&AbstractAu dioContext::notifyStateChange, this)); 638 executionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&Abst ractAudioContext::notifyStateChange, this));
639 } 639 }
640 640
641 void AbstractAudioContext::notifyStateChange() 641 void AbstractAudioContext::notifyStateChange()
642 { 642 {
643 dispatchEvent(Event::create(EventTypeNames::statechange)); 643 dispatchEvent(Event::create(EventTypeNames::statechange));
644 } 644 }
645 645
646 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand ler) 646 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand ler)
647 { 647 {
648 ASSERT(isAudioThread()); 648 ASSERT(isAudioThread());
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 { 758 {
759 // This runs inside the AbstractAudioContext's lock when handling pre-render tasks. 759 // This runs inside the AbstractAudioContext's lock when handling pre-render tasks.
760 ASSERT(isAudioThread()); 760 ASSERT(isAudioThread());
761 ASSERT(isGraphOwner()); 761 ASSERT(isGraphOwner());
762 762
763 // Resolve any pending promises created by resume(). Only do this if we have n't already started 763 // Resolve any pending promises created by resume(). Only do this if we have n't already started
764 // resolving these promises. This gets called very often and it takes some t ime to resolve the 764 // resolving these promises. This gets called very often and it takes some t ime to resolve the
765 // promises in the main thread. 765 // promises in the main thread.
766 if (!m_isResolvingResumePromises && m_resumeResolvers.size() > 0) { 766 if (!m_isResolvingResumePromises && m_resumeResolvers.size() > 0) {
767 m_isResolvingResumePromises = true; 767 m_isResolvingResumePromises = true;
768 Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, thr eadSafeBind(&AbstractAudioContext::resolvePromisesForResumeOnMainThread, this)); 768 Platform::current()->mainThread()->taskRunner()->postTask(BLINK_FROM_HER E, threadSafeBind(&AbstractAudioContext::resolvePromisesForResumeOnMainThread, t his));
769 } 769 }
770 } 770 }
771 771
772 void AbstractAudioContext::rejectPendingResolvers() 772 void AbstractAudioContext::rejectPendingResolvers()
773 { 773 {
774 ASSERT(isMainThread()); 774 ASSERT(isMainThread());
775 775
776 // Audio context is closing down so reject any resume promises that are stil l pending. 776 // Audio context is closing down so reject any resume promises that are stil l pending.
777 777
778 for (auto& resolver : m_resumeResolvers) { 778 for (auto& resolver : m_resumeResolvers) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 { 851 {
852 if (executionContext()) 852 if (executionContext())
853 return executionContext()->securityOrigin(); 853 return executionContext()->securityOrigin();
854 854
855 return nullptr; 855 return nullptr;
856 } 856 }
857 857
858 } // namespace blink 858 } // namespace blink
859 859
860 #endif // ENABLE(WEB_AUDIO) 860 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698