OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef TrackBase_h | 26 #ifndef TrackBase_h |
27 #define TrackBase_h | 27 #define TrackBase_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "platform/Supplementable.h" | 30 #include "platform/Supplementable.h" |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 #include "public/platform/WebMediaPlayer.h" | 32 #include "public/platform/WebMediaPlayer.h" |
33 #include "wtf/RefCounted.h" | |
34 #include "wtf/text/AtomicString.h" | 33 #include "wtf/text/AtomicString.h" |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 class HTMLMediaElement; | 37 class HTMLMediaElement; |
39 | 38 |
40 class CORE_EXPORT TrackBase : public Supplementable<TrackBase> { | 39 class CORE_EXPORT TrackBase : public Supplementable<TrackBase> { |
41 public: | 40 public: |
42 virtual ~TrackBase(); | 41 virtual ~TrackBase(); |
43 | 42 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 String m_id; | 77 String m_id; |
79 Member<HTMLMediaElement> m_mediaElement; | 78 Member<HTMLMediaElement> m_mediaElement; |
80 }; | 79 }; |
81 | 80 |
82 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \ | 81 #define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \ |
83 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->type() == predicate, tr
ack.type() == predicate) | 82 DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->type() == predicate, tr
ack.type() == predicate) |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
86 | 85 |
87 #endif // TrackBase_h | 86 #endif // TrackBase_h |
OLD | NEW |