| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 | 655 |
| 656 // 2. Set the updating attribute to true. | 656 // 2. Set the updating attribute to true. |
| 657 m_updating = true; | 657 m_updating = true; |
| 658 | 658 |
| 659 // 3. Queue a task to fire a simple event named updatestart at this SourceBu
ffer object. | 659 // 3. Queue a task to fire a simple event named updatestart at this SourceBu
ffer object. |
| 660 scheduleEvent(EventTypeNames::updatestart); | 660 scheduleEvent(EventTypeNames::updatestart); |
| 661 | 661 |
| 662 // 4. Asynchronously run the stream append loop algorithm with stream and ma
xSize. | 662 // 4. Asynchronously run the stream append loop algorithm with stream and ma
xSize. |
| 663 | 663 |
| 664 stream->neuter(); | 664 stream->neuter(); |
| 665 m_loader = adoptPtr(new FileReaderLoader(FileReaderLoader::ReadByClient, thi
s)); | 665 m_loader = FileReaderLoader::create(FileReaderLoader::ReadByClient, this); |
| 666 m_stream = stream; | 666 m_stream = stream; |
| 667 m_appendStreamAsyncPartRunner.runAsync(); | 667 m_appendStreamAsyncPartRunner.runAsync(); |
| 668 } | 668 } |
| 669 | 669 |
| 670 void SourceBuffer::appendStreamAsyncPart() | 670 void SourceBuffer::appendStreamAsyncPart() |
| 671 { | 671 { |
| 672 ASSERT(m_updating); | 672 ASSERT(m_updating); |
| 673 ASSERT(m_loader); | 673 ASSERT(m_loader); |
| 674 ASSERT(m_stream); | 674 ASSERT(m_stream); |
| 675 | 675 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 { | 763 { |
| 764 visitor->trace(m_source); | 764 visitor->trace(m_source); |
| 765 visitor->trace(m_stream); | 765 visitor->trace(m_stream); |
| 766 visitor->trace(m_trackDefaults); | 766 visitor->trace(m_trackDefaults); |
| 767 visitor->trace(m_asyncEventQueue); | 767 visitor->trace(m_asyncEventQueue); |
| 768 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); | 768 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); |
| 769 ActiveDOMObject::trace(visitor); | 769 ActiveDOMObject::trace(visitor); |
| 770 } | 770 } |
| 771 | 771 |
| 772 } // namespace blink | 772 } // namespace blink |
| OLD | NEW |