Chromium Code Reviews| Index: chrome/common/extensions/media_parser.mojom |
| diff --git a/chrome/common/extensions/media_parser.mojom b/chrome/common/extensions/media_parser.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..083a4d31d96b82cd6470073a6ae465419982d886 |
| --- /dev/null |
| +++ b/chrome/common/extensions/media_parser.mojom |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Media parsing interface provided by the utility process and exposed by |
| +// mojo policy control to the chrome browser process. |
| + |
| +module extensions.mojom; |
| + |
| +import "mojo/common/values.mojom"; |
| + |
| +struct AttachedImage { |
| + 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
|
| + 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
|
| +}; |
| + |
| +interface MediaParser { |
| + ParseMediaMetadata(string mime_type, |
| + int64 total_size, |
| + bool get_attached_images) |
| + => (bool parse_success, |
| + mojo.common.mojom.DictionaryValue metadata, |
| + array<AttachedImage> attached_images); |
| +}; |