Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.h

Issue 2263823002: Deliver change notifications to SourceBuffer track lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call VideoTrackList::trackSelected also the SourceBuffer track list Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 static bool isTypeSupported(const String& type); 86 static bool isTypeSupported(const String& type);
87 87
88 // HTMLMediaSource 88 // HTMLMediaSource
89 bool attachToElement(HTMLMediaElement*) override; 89 bool attachToElement(HTMLMediaElement*) override;
90 void setWebMediaSourceAndOpen(std::unique_ptr<WebMediaSource>) override; 90 void setWebMediaSourceAndOpen(std::unique_ptr<WebMediaSource>) override;
91 void close() override; 91 void close() override;
92 bool isClosed() const override; 92 bool isClosed() const override;
93 double duration() const override; 93 double duration() const override;
94 TimeRanges* buffered() const override; 94 TimeRanges* buffered() const override;
95 TimeRanges* seekable() const override; 95 TimeRanges* seekable() const override;
96 void onTrackChanged(TrackBase*) override;
96 97
97 // EventTarget interface 98 // EventTarget interface
98 const AtomicString& interfaceName() const override; 99 const AtomicString& interfaceName() const override;
99 ExecutionContext* getExecutionContext() const override; 100 ExecutionContext* getExecutionContext() const override;
100 101
101 // ActiveScriptWrappable 102 // ActiveScriptWrappable
102 bool hasPendingActivity() const final; 103 bool hasPendingActivity() const final;
103 104
104 // ActiveDOMObject interface 105 // ActiveDOMObject interface
105 void stop() override; 106 void stop() override;
106 107
107 // URLRegistrable interface 108 // URLRegistrable interface
108 URLRegistry& registry() const override; 109 URLRegistry& registry() const override;
109 110
110 // Used by SourceBuffer. 111 // Used by SourceBuffer.
111 void openIfInEndedState(); 112 void openIfInEndedState();
112 bool isOpen() const; 113 bool isOpen() const;
113 void setSourceBufferActive(SourceBuffer*); 114 void setSourceBufferActive(SourceBuffer*, bool);
114 HTMLMediaElement* mediaElement() const; 115 HTMLMediaElement* mediaElement() const;
115 116
116 // Used by MediaSourceRegistry. 117 // Used by MediaSourceRegistry.
117 void addedToRegistry(); 118 void addedToRegistry();
118 void removedFromRegistry(); 119 void removedFromRegistry();
119 120
120 DECLARE_VIRTUAL_TRACE(); 121 DECLARE_VIRTUAL_TRACE();
121 122
122 private: 123 private:
123 explicit MediaSource(ExecutionContext*); 124 explicit MediaSource(ExecutionContext*);
(...skipping 20 matching lines...) Expand all
144 Member<SourceBufferList> m_activeSourceBuffers; 145 Member<SourceBufferList> m_activeSourceBuffers;
145 146
146 Member<TimeRanges> m_liveSeekableRange; 147 Member<TimeRanges> m_liveSeekableRange;
147 148
148 int m_addedToRegistryCounter; 149 int m_addedToRegistryCounter;
149 }; 150 };
150 151
151 } // namespace blink 152 } // namespace blink
152 153
153 #endif // MediaSource_h 154 #endif // MediaSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698