| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 if (isUpdating) { | 61 if (isUpdating) { |
| 62 exceptionState.throwDOMException(InvalidStateError, "The 'updating' attr
ibute is true on one or more of this MediaSource's SourceBuffers."); | 62 exceptionState.throwDOMException(InvalidStateError, "The 'updating' attr
ibute is true on one or more of this MediaSource's SourceBuffers."); |
| 63 return true; | 63 return true; |
| 64 } | 64 } |
| 65 | 65 |
| 66 return false; | 66 return false; |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace | 69 } // namespace |
| 70 | 70 |
| 71 DEFINE_GC_INFO(MediaSourceBase); | |
| 72 | |
| 73 MediaSourceBase::MediaSourceBase(ExecutionContext* context) | 71 MediaSourceBase::MediaSourceBase(ExecutionContext* context) |
| 74 : ActiveDOMObject(context) | 72 : ActiveDOMObject(context) |
| 75 , m_readyState(closedKeyword()) | 73 , m_readyState(closedKeyword()) |
| 76 , m_asyncEventQueue(GenericEventQueue::create(this)) | 74 , m_asyncEventQueue(GenericEventQueue::create(this)) |
| 77 , m_attachedElement(0) | 75 , m_attachedElement(0) |
| 78 { | 76 { |
| 79 } | 77 } |
| 80 | 78 |
| 81 MediaSourceBase::~MediaSourceBase() | 79 MediaSourceBase::~MediaSourceBase() |
| 82 { | 80 { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 { | 347 { |
| 350 return ActiveDOMObject::executionContext(); | 348 return ActiveDOMObject::executionContext(); |
| 351 } | 349 } |
| 352 | 350 |
| 353 URLRegistry& MediaSourceBase::registry() const | 351 URLRegistry& MediaSourceBase::registry() const |
| 354 { | 352 { |
| 355 return MediaSourceRegistry::registry(); | 353 return MediaSourceRegistry::registry(); |
| 356 } | 354 } |
| 357 | 355 |
| 358 } | 356 } |
| OLD | NEW |