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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "platform/TraceEvent.h" | 45 #include "platform/TraceEvent.h" |
46 #include "public/platform/WebSourceBuffer.h" | 46 #include "public/platform/WebSourceBuffer.h" |
47 #include "wtf/ArrayBuffer.h" | 47 #include "wtf/ArrayBuffer.h" |
48 #include "wtf/ArrayBufferView.h" | 48 #include "wtf/ArrayBufferView.h" |
49 #include "wtf/MathExtras.h" | 49 #include "wtf/MathExtras.h" |
50 | 50 |
51 #include <limits> | 51 #include <limits> |
52 | 52 |
53 using blink::WebSourceBuffer; | 53 using blink::WebSourceBuffer; |
54 | 54 |
55 namespace WebCore { | 55 namespace blink { |
56 | 56 |
57 namespace { | 57 namespace { |
58 | 58 |
59 static bool throwExceptionIfRemovedOrUpdating(bool isRemoved, bool isUpdating, E
xceptionState& exceptionState) | 59 static bool throwExceptionIfRemovedOrUpdating(bool isRemoved, bool isUpdating, E
xceptionState& exceptionState) |
60 { | 60 { |
61 if (isRemoved) { | 61 if (isRemoved) { |
62 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer h
as been removed from the parent media source."); | 62 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer h
as been removed from the parent media source."); |
63 return true; | 63 return true; |
64 } | 64 } |
65 if (isUpdating) { | 65 if (isUpdating) { |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 appendStreamDone(false); | 714 appendStreamDone(false); |
715 } | 715 } |
716 | 716 |
717 void SourceBuffer::trace(Visitor* visitor) | 717 void SourceBuffer::trace(Visitor* visitor) |
718 { | 718 { |
719 visitor->trace(m_source); | 719 visitor->trace(m_source); |
720 visitor->trace(m_stream); | 720 visitor->trace(m_stream); |
721 EventTargetWithInlineData::trace(visitor); | 721 EventTargetWithInlineData::trace(visitor); |
722 } | 722 } |
723 | 723 |
724 } // namespace WebCore | 724 } // namespace blink |
OLD | NEW |