| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "media/filters/source_buffer.h" | 5 #include "media/filters/source_buffer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "media/webm/webm_stream_parser.h" | |
| 10 | 9 |
| 11 namespace media { | 10 namespace media { |
| 12 | 11 |
| 13 SourceBuffer::SourceBuffer() {} | 12 SourceBuffer::SourceBuffer() {} |
| 14 | 13 |
| 15 SourceBuffer::~SourceBuffer() {} | 14 SourceBuffer::~SourceBuffer() {} |
| 16 | 15 |
| 17 void SourceBuffer::Init(scoped_ptr<StreamParser> parser, | 16 void SourceBuffer::Init(scoped_ptr<StreamParser> parser, |
| 18 const InitCB& init_cb, | 17 const InitCB& init_cb, |
| 19 const NewConfigCB& config_cb, | 18 const NewConfigCB& config_cb, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 163 |
| 165 return video_cb_.Run(); | 164 return video_cb_.Run(); |
| 166 } | 165 } |
| 167 | 166 |
| 168 bool SourceBuffer::OnKeyNeeded(scoped_array<uint8> init_data, | 167 bool SourceBuffer::OnKeyNeeded(scoped_array<uint8> init_data, |
| 169 int init_data_size) { | 168 int init_data_size) { |
| 170 return key_needed_cb_.Run(init_data.Pass(), init_data_size); | 169 return key_needed_cb_.Run(init_data.Pass(), init_data_size); |
| 171 } | 170 } |
| 172 | 171 |
| 173 } // namespace media | 172 } // namespace media |
| OLD | NEW |