OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "bindings/core/v8/ActiveScriptWrappable.h" | 30 #include "bindings/core/v8/ActiveScriptWrappable.h" |
31 #include "bindings/core/v8/ScriptPromise.h" | 31 #include "bindings/core/v8/ScriptPromise.h" |
32 #include "bindings/core/v8/TraceWrapperMember.h" | 32 #include "bindings/core/v8/TraceWrapperMember.h" |
33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
34 #include "core/dom/ActiveDOMObject.h" | 34 #include "core/dom/ActiveDOMObject.h" |
35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
36 #include "core/events/GenericEventQueue.h" | 36 #include "core/events/GenericEventQueue.h" |
37 #include "core/html/AutoplayExperimentHelper.h" | 37 #include "core/html/AutoplayExperimentHelper.h" |
38 #include "core/html/HTMLElement.h" | 38 #include "core/html/HTMLElement.h" |
39 #include "core/html/track/TextTrack.h" | 39 #include "core/html/track/TextTrack.h" |
| 40 #include "platform/MIMETypeRegistry.h" |
40 #include "platform/Supplementable.h" | 41 #include "platform/Supplementable.h" |
41 #include "platform/audio/AudioSourceProvider.h" | 42 #include "platform/audio/AudioSourceProvider.h" |
42 #include "public/platform/WebAudioSourceProviderClient.h" | 43 #include "public/platform/WebAudioSourceProviderClient.h" |
43 #include "public/platform/WebMediaPlayerClient.h" | 44 #include "public/platform/WebMediaPlayerClient.h" |
44 #include "public/platform/WebMimeRegistry.h" | |
45 #include <memory> | 45 #include <memory> |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 class AudioSourceProviderClient; | 49 class AudioSourceProviderClient; |
50 class AudioTrack; | 50 class AudioTrack; |
51 class AudioTrackList; | 51 class AudioTrackList; |
52 class AutoplayUmaHelper; | 52 class AutoplayUmaHelper; |
53 class ContentType; | 53 class ContentType; |
54 class CueTimeline; | 54 class CueTimeline; |
(...skipping 23 matching lines...) Expand all Loading... |
78 class CORE_EXPORT HTMLMediaElement : public HTMLElement, | 78 class CORE_EXPORT HTMLMediaElement : public HTMLElement, |
79 public Supplementable<HTMLMediaElement>, | 79 public Supplementable<HTMLMediaElement>, |
80 public ActiveScriptWrappable, | 80 public ActiveScriptWrappable, |
81 public ActiveDOMObject, | 81 public ActiveDOMObject, |
82 private WebMediaPlayerClient { | 82 private WebMediaPlayerClient { |
83 DEFINE_WRAPPERTYPEINFO(); | 83 DEFINE_WRAPPERTYPEINFO(); |
84 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); | 84 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); |
85 USING_PRE_FINALIZER(HTMLMediaElement, dispose); | 85 USING_PRE_FINALIZER(HTMLMediaElement, dispose); |
86 | 86 |
87 public: | 87 public: |
88 static WebMimeRegistry::SupportsType supportsType(const ContentType&); | 88 static MIMETypeRegistry::SupportsType supportsType(const ContentType&); |
89 | 89 |
90 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; | 90 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; |
91 | 91 |
92 static void setMediaStreamRegistry(URLRegistry*); | 92 static void setMediaStreamRegistry(URLRegistry*); |
93 static bool isMediaStreamURL(const String& url); | 93 static bool isMediaStreamURL(const String& url); |
94 static bool isHLSURL(const KURL&); | 94 static bool isHLSURL(const KURL&); |
95 | 95 |
96 DECLARE_VIRTUAL_TRACE(); | 96 DECLARE_VIRTUAL_TRACE(); |
97 | 97 |
98 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 98 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 | 727 |
728 inline bool isHTMLMediaElement(const HTMLElement& element) { | 728 inline bool isHTMLMediaElement(const HTMLElement& element) { |
729 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 729 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
730 } | 730 } |
731 | 731 |
732 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 732 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
733 | 733 |
734 } // namespace blink | 734 } // namespace blink |
735 | 735 |
736 #endif // HTMLMediaElement_h | 736 #endif // HTMLMediaElement_h |
OLD | NEW |