OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/mediasource/WebKitSourceBuffer.h" | 32 #include "modules/mediasource/WebKitSourceBuffer.h" |
33 | 33 |
34 #include "bindings/v8/ExceptionState.h" | 34 #include "bindings/v8/ExceptionState.h" |
35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
36 #include "core/html/TimeRanges.h" | 36 #include "core/html/TimeRanges.h" |
37 #include "modules/mediasource/WebKitMediaSource.h" | 37 #include "modules/mediasource/WebKitMediaSource.h" |
38 #include "platform/TraceEvent.h" | |
39 #include "public/platform/WebSourceBuffer.h" | 38 #include "public/platform/WebSourceBuffer.h" |
| 39 #include "wtf/TraceEvent.h" |
40 #include "wtf/Uint8Array.h" | 40 #include "wtf/Uint8Array.h" |
41 | 41 |
42 using blink::WebSourceBuffer; | 42 using blink::WebSourceBuffer; |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 static bool throwExceptionIfRemoved(bool isRemoved, ExceptionState& exceptionSta
te) | 46 static bool throwExceptionIfRemoved(bool isRemoved, ExceptionState& exceptionSta
te) |
47 { | 47 { |
48 if (isRemoved) { | 48 if (isRemoved) { |
49 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer h
as been removed from its parent MediaSource."); | 49 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer h
as been removed from its parent MediaSource."); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 { | 173 { |
174 return !m_source; | 174 return !m_source; |
175 } | 175 } |
176 | 176 |
177 void WebKitSourceBuffer::trace(Visitor* visitor) | 177 void WebKitSourceBuffer::trace(Visitor* visitor) |
178 { | 178 { |
179 visitor->trace(m_source); | 179 visitor->trace(m_source); |
180 } | 180 } |
181 | 181 |
182 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |