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

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

Issue 1658033002: Add SourceBuffer implementations of Audio/VideoTracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-media-tracks-to-blink
Patch Set: Added SourceBufferTrackBaseSupplement::from 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SourceBufferTrackBaseSupplement_h
6 #define SourceBufferTrackBaseSupplement_h
7
8 #include "platform/Supplementable.h"
9 #include "wtf/Allocator.h"
10
11 namespace blink {
12
13 class TrackBase;
14 class SourceBuffer;
15
16 class SourceBufferTrackBaseSupplement : public GarbageCollected<SourceBufferTrac kBaseSupplement>, public Supplement<TrackBase> {
17 USING_GARBAGE_COLLECTED_MIXIN(SourceBufferTrackBaseSupplement);
18 public:
19 static SourceBufferTrackBaseSupplement& from(TrackBase&);
20
21 static SourceBuffer* sourceBuffer(TrackBase&);
22 void setSourceBuffer(SourceBuffer*);
philipj_slow 2016/04/07 08:59:35 Hmm, it doesn't matter much, but I think it'd look
servolk 2016/04/07 17:03:55 Done.
23
24 DECLARE_VIRTUAL_TRACE();
25
26 private:
27 explicit SourceBufferTrackBaseSupplement(TrackBase&);
28 Member<SourceBuffer> m_sourceBuffer;
29 };
30
31 } // namespace blink
32
33 #endif
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698