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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 break; | 588 break; |
589 case Running: | 589 case Running: |
590 DCHECK_EQ(m_contextState, Suspended); | 590 DCHECK_EQ(m_contextState, Suspended); |
591 break; | 591 break; |
592 case Closed: | 592 case Closed: |
593 DCHECK_NE(m_contextState, Closed); | 593 DCHECK_NE(m_contextState, Closed); |
594 break; | 594 break; |
595 } | 595 } |
596 | 596 |
597 if (newState == m_contextState) { | 597 if (newState == m_contextState) { |
598 // ASSERTs above failed; just return. | 598 // DCHECKs above failed; just return. |
599 return; | 599 return; |
600 } | 600 } |
601 | 601 |
602 m_contextState = newState; | 602 m_contextState = newState; |
603 | 603 |
604 // Notify context that state changed | 604 // Notify context that state changed |
605 if (getExecutionContext()) | 605 if (getExecutionContext()) |
606 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&B
aseAudioContext::notifyStateChange, wrapPersistent(this))); | 606 getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&B
aseAudioContext::notifyStateChange, wrapPersistent(this))); |
607 } | 607 } |
608 | 608 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 | 831 |
832 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const | 832 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const |
833 { | 833 { |
834 if (getExecutionContext()) | 834 if (getExecutionContext()) |
835 return getExecutionContext()->getSecurityOrigin(); | 835 return getExecutionContext()->getSecurityOrigin(); |
836 | 836 |
837 return nullptr; | 837 return nullptr; |
838 } | 838 } |
839 | 839 |
840 } // namespace blink | 840 } // namespace blink |
OLD | NEW |