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

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

Issue 1846863002: Remove SourceBuffer media tracks on detach from media element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: Created 4 years, 8 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void appendBufferAsyncPart(); 129 void appendBufferAsyncPart();
130 void appendError(bool decodeError); 130 void appendError(bool decodeError);
131 131
132 void removeAsyncPart(); 132 void removeAsyncPart();
133 133
134 void appendStreamInternal(Stream*, ExceptionState&); 134 void appendStreamInternal(Stream*, ExceptionState&);
135 void appendStreamAsyncPart(); 135 void appendStreamAsyncPart();
136 void appendStreamDone(bool success); 136 void appendStreamDone(bool success);
137 void clearAppendStreamState(); 137 void clearAppendStreamState();
138 138
139 void removeMediaTracks();
140
139 // FileReaderLoaderClient interface 141 // FileReaderLoaderClient interface
140 void didStartLoading() override; 142 void didStartLoading() override;
141 void didReceiveDataForClient(const char* data, unsigned dataLength) override ; 143 void didReceiveDataForClient(const char* data, unsigned dataLength) override ;
142 void didFinishLoading() override; 144 void didFinishLoading() override;
143 void didFail(FileError::ErrorCode) override; 145 void didFail(FileError::ErrorCode) override;
144 146
145 OwnPtr<WebSourceBuffer> m_webSourceBuffer; 147 OwnPtr<WebSourceBuffer> m_webSourceBuffer;
146 Member<MediaSource> m_source; 148 Member<MediaSource> m_source;
147 Member<TrackDefaultList> m_trackDefaults; 149 Member<TrackDefaultList> m_trackDefaults;
148 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 150 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue;
(...skipping 18 matching lines...) Expand all
167 bool m_streamMaxSizeValid; 169 bool m_streamMaxSizeValid;
168 unsigned long long m_streamMaxSize; 170 unsigned long long m_streamMaxSize;
169 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; 171 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner;
170 Member<Stream> m_stream; 172 Member<Stream> m_stream;
171 OwnPtr<FileReaderLoader> m_loader; 173 OwnPtr<FileReaderLoader> m_loader;
172 }; 174 };
173 175
174 } // namespace blink 176 } // namespace blink
175 177
176 #endif // SourceBuffer_h 178 #endif // SourceBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698