| 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 595 |
| 596 if (newState == m_contextState) { | 596 if (newState == m_contextState) { |
| 597 // ASSERTs above failed; just return. | 597 // ASSERTs above failed; just return. |
| 598 return; | 598 return; |
| 599 } | 599 } |
| 600 | 600 |
| 601 m_contextState = newState; | 601 m_contextState = newState; |
| 602 | 602 |
| 603 // Notify context that state changed | 603 // Notify context that state changed |
| 604 if (getExecutionContext()) | 604 if (getExecutionContext()) |
| 605 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&A
bstractAudioContext::notifyStateChange, this)); | 605 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&A
bstractAudioContext::notifyStateChange, wrapPersistent(this))); |
| 606 } | 606 } |
| 607 | 607 |
| 608 void AbstractAudioContext::notifyStateChange() | 608 void AbstractAudioContext::notifyStateChange() |
| 609 { | 609 { |
| 610 dispatchEvent(Event::create(EventTypeNames::statechange)); | 610 dispatchEvent(Event::create(EventTypeNames::statechange)); |
| 611 } | 611 } |
| 612 | 612 |
| 613 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand
ler) | 613 void AbstractAudioContext::notifySourceNodeFinishedProcessing(AudioHandler* hand
ler) |
| 614 { | 614 { |
| 615 ASSERT(isAudioThread()); | 615 ASSERT(isAudioThread()); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 | 830 |
| 831 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const | 831 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const |
| 832 { | 832 { |
| 833 if (getExecutionContext()) | 833 if (getExecutionContext()) |
| 834 return getExecutionContext()->getSecurityOrigin(); | 834 return getExecutionContext()->getSecurityOrigin(); |
| 835 | 835 |
| 836 return nullptr; | 836 return nullptr; |
| 837 } | 837 } |
| 838 | 838 |
| 839 } // namespace blink | 839 } // namespace blink |
| OLD | NEW |