Chromium Code Reviews| Index: media/base/stream_parser_buffer.h |
| diff --git a/media/base/stream_parser_buffer.h b/media/base/stream_parser_buffer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da0183b64ef93d27eb562c5bcf21cfe866e678be |
| --- /dev/null |
| +++ b/media/base/stream_parser_buffer.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2012 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 MEDIA_BASE_STREAM_PARSER_BUFFER_H_ |
| +#define MEDIA_BASE_STREAM_PARSER_BUFFER_H_ |
| + |
| +#include "media/base/data_buffer.h" |
| +#include "media/base/media_export.h" |
| + |
| +namespace media { |
| + |
| +class MEDIA_EXPORT StreamParserBuffer : public DataBuffer { |
| + public: |
| + static StreamParserBuffer* CreateEOSBuffer(); |
|
acolwell GONE FROM CHROMIUM
2012/05/01 22:08:50
nit: Any reason we can't return a scoped_refptr<St
vrk (LEFT CHROMIUM)
2012/05/02 17:24:51
Done.
|
| + static scoped_refptr<StreamParserBuffer> CopyFrom( |
| + const uint8* data, int size, bool is_keyframe); |
| + bool IsKeyframe() const { return is_keyframe_; } |
| + |
| + private: |
| + StreamParserBuffer(int buffer_size, bool is_keyframe); |
| + bool is_keyframe_; |
| + DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer); |
| +}; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_STREAM_PARSER_BUFFER_H_ |