OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_FORMATS_WEBM_CHROMEOS_EBML_WRITER_H_ |
| 6 #define MEDIA_FORMATS_WEBM_CHROMEOS_EBML_WRITER_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 |
| 10 // This struct serves as a bridge betweeen static libmkv interface and Chrome's |
| 11 // base::Callback. Must be in the global namespace. See EbmlWriter.h. |
| 12 struct EbmlGlobal { |
| 13 EbmlGlobal(); |
| 14 ~EbmlGlobal(); |
| 15 |
| 16 base::Callback<void(const void* buffer, unsigned long len)> write_cb; |
| 17 base::Callback<void(const void* buffer, int buffer_size, unsigned long len)> |
| 18 serialize_cb; |
| 19 }; |
| 20 |
| 21 #endif // MEDIA_FORMATS_WEBM_CHROMEOS_EBML_WRITER_H_ |
OLD | NEW |