OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 // Media parsing interface provided by the utility process and exposed by |
| 6 // mojo policy control to the chrome browser process. |
| 7 |
| 8 module extensions.mojom; |
| 9 |
| 10 import "mojo/common/values.mojom"; |
| 11 |
| 12 struct AttachedImage { |
| 13 string type; |
| 14 array<uint8> data; |
| 15 }; |
| 16 |
| 17 interface MediaParser { |
| 18 ParseMediaMetadata(string mime_type, |
| 19 int64 total_size, |
| 20 bool get_attached_images) |
| 21 => (bool parse_success, |
| 22 mojo.common.mojom.DictionaryValue metadata, |
| 23 array<AttachedImage> attached_images); |
| 24 }; |
OLD | NEW |