Chromium Code Reviews| Index: Source/modules/mediasource/TrackDefaultList.h |
| diff --git a/Source/modules/mediasource/TrackDefaultList.h b/Source/modules/mediasource/TrackDefaultList.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c0fcf3b6185167d94be14a56768d38ec926a5ce6 |
| --- /dev/null |
| +++ b/Source/modules/mediasource/TrackDefaultList.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef TrackDefaultList_h |
| +#define TrackDefaultList_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "modules/mediasource/TrackDefault.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class ExceptionState; |
| + |
| +class TrackDefaultList final : public GarbageCollected<TrackDefaultList>, public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| +public: |
| + static TrackDefaultList* create(const HeapVector<Member<TrackDefault>>&, ExceptionState&); |
| + |
| + // Implement the IDL |
| + unsigned length() const { return m_trackDefaults.size(); } |
| + TrackDefault* item(unsigned) const; |
| + |
| + void trace(Visitor*); |
| + |
| +private: |
| + TrackDefaultList(const HeapVector<Member<TrackDefault>>&); |
|
sof
2014/12/15 19:37:29
add "explicit".
wolenetz
2014/12/15 20:31:48
Done. Thank you for spotting this.
|
| + |
| + const HeapVector<Member<TrackDefault>> m_trackDefaults; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // TrackDefaultList_h |