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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 m_appendStreamTimer.stop(); | 372 m_appendStreamTimer.stop(); |
373 } | 373 } |
374 | 374 |
375 ExecutionContext* SourceBuffer::executionContext() const | 375 ExecutionContext* SourceBuffer::executionContext() const |
376 { | 376 { |
377 return ActiveDOMObject::executionContext(); | 377 return ActiveDOMObject::executionContext(); |
378 } | 378 } |
379 | 379 |
380 const AtomicString& SourceBuffer::interfaceName() const | 380 const AtomicString& SourceBuffer::interfaceName() const |
381 { | 381 { |
382 return eventNames().interfaceForSourceBuffer; | 382 return EventTargetNames::SourceBuffer; |
383 } | 383 } |
384 | 384 |
385 bool SourceBuffer::isRemoved() const | 385 bool SourceBuffer::isRemoved() const |
386 { | 386 { |
387 return !m_source; | 387 return !m_source; |
388 } | 388 } |
389 | 389 |
390 void SourceBuffer::scheduleEvent(const AtomicString& eventName) | 390 void SourceBuffer::scheduleEvent(const AtomicString& eventName) |
391 { | 391 { |
392 ASSERT(m_asyncEventQueue); | 392 ASSERT(m_asyncEventQueue); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 appendStreamDone(true); | 616 appendStreamDone(true); |
617 } | 617 } |
618 | 618 |
619 void SourceBuffer::didFail(FileError::ErrorCode errorCode) | 619 void SourceBuffer::didFail(FileError::ErrorCode errorCode) |
620 { | 620 { |
621 LOG(Media, "SourceBuffer::didFail(%d) %p", errorCode, this); | 621 LOG(Media, "SourceBuffer::didFail(%d) %p", errorCode, this); |
622 appendStreamDone(false); | 622 appendStreamDone(false); |
623 } | 623 } |
624 | 624 |
625 } // namespace WebCore | 625 } // namespace WebCore |
OLD | NEW |