| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 | 750 |
| 751 if (newState == m_contextState) { | 751 if (newState == m_contextState) { |
| 752 // ASSERTs above failed; just return. | 752 // ASSERTs above failed; just return. |
| 753 return; | 753 return; |
| 754 } | 754 } |
| 755 | 755 |
| 756 m_contextState = newState; | 756 m_contextState = newState; |
| 757 | 757 |
| 758 // Notify context that state changed | 758 // Notify context that state changed |
| 759 if (getExecutionContext()) | 759 if (getExecutionContext()) |
| 760 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&A
bstractAudioContext::notifyStateChange, this)); | 760 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&A
bstractAudioContext::notifyStateChange, retainedRef(this))); |
| 761 } | 761 } |
| 762 | 762 |
| 763 void AbstractAudioContext::notifyStateChange() | 763 void AbstractAudioContext::notifyStateChange() |
| 764 { | 764 { |
| 765 dispatchEvent(Event::create(EventTypeNames::statechange)); | 765 dispatchEvent(Event::create(EventTypeNames::statechange)); |
| 766 } | 766 } |
| 767 | 767 |
| 768 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand
ler) | 768 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand
ler) |
| 769 { | 769 { |
| 770 ASSERT(isAudioThread()); | 770 ASSERT(isAudioThread()); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const | 957 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const |
| 958 { | 958 { |
| 959 if (getExecutionContext()) | 959 if (getExecutionContext()) |
| 960 return getExecutionContext()->getSecurityOrigin(); | 960 return getExecutionContext()->getSecurityOrigin(); |
| 961 | 961 |
| 962 return nullptr; | 962 return nullptr; |
| 963 } | 963 } |
| 964 | 964 |
| 965 } // namespace blink | 965 } // namespace blink |
| 966 | 966 |
| OLD | NEW |