| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ | 5 #ifndef MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ |
| 6 #define MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ | 6 #define MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 | 10 |
| 10 namespace media { | 11 namespace media { |
| 11 | 12 |
| 12 class Cluster { | 13 class Cluster { |
| 13 public: | 14 public: |
| 14 Cluster(scoped_ptr<uint8_t[]> data, int size); | 15 Cluster(scoped_ptr<uint8_t[]> data, int size); |
| 15 ~Cluster(); | 16 ~Cluster(); |
| 16 | 17 |
| 17 const uint8_t* data() const { return data_.get(); } | 18 const uint8_t* data() const { return data_.get(); } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 int buffer_size_; | 73 int buffer_size_; |
| 73 int bytes_used_; | 74 int bytes_used_; |
| 74 int64_t cluster_timecode_; | 75 int64_t cluster_timecode_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(ClusterBuilder); | 77 DISALLOW_COPY_AND_ASSIGN(ClusterBuilder); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace media | 80 } // namespace media |
| 80 | 81 |
| 81 #endif // MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ | 82 #endif // MEDIA_FORMATS_WEBM_CLUSTER_BUILDER_H_ |
| OLD | NEW |