Chromium Code Reviews| 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; | |
|
tibell
2017/01/09 03:55:51
Is this a MIME type? Please add a comment and perh
Noel Gordon
2017/01/09 14:54:19
Not sure it's a mime type: no documentation in ::m
| |
| 14 string data; | |
|
tibell
2017/01/09 03:55:51
If this is binary data use array<uint8>. string wi
Noel Gordon
2017/01/09 14:54:19
Looks like binary data, so good point; use an arra
| |
| 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 |