Chromium Code Reviews| Index: chrome/common/media_router/dial_device_description_parser.mojom |
| diff --git a/chrome/common/media_router/dial_device_description_parser.mojom b/chrome/common/media_router/dial_device_description_parser.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b7d4c6115fa77b46dd85a58a8ef0a6fa7a950c50 |
| --- /dev/null |
| +++ b/chrome/common/media_router/dial_device_description_parser.mojom |
| @@ -0,0 +1,34 @@ |
| +// 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. |
| + |
| +// DIAL device description parsing interface provided by the utility process and |
| +// exposed by mojo policy control to the chrome browser process. |
| + |
| +module chrome.mojom; |
| + |
| +struct DialDeviceDescription { |
| + // UUID (UDN). |
| + string unique_id; |
| + |
| + // Short user-friendly title. |
| + string friendly_name; |
| + |
| + // Model name |
|
mark a. foltz
2017/03/18 18:56:57
Period at end
zhaobin
2017/03/20 21:25:46
Done.
|
| + string model_name; |
| + |
| + // The reported device type. E.g. urn:dial-multiscreen-org:device:dial:1 |
|
mark a. foltz
2017/03/18 18:56:57
type, e.g.
zhaobin
2017/03/20 21:25:46
Done.
|
| + string device_type; |
| +}; |
| + |
| +interface DialDeviceDescriptionParser { |
| + // Parses |device_description_xml_data| to get device description data. If |
| + // parsing succeeds, invokes callback with |parse_result| equals to true; |
| + // otherwise invokes callback with |parse_result| equals to false. |
| + // |device_description|: device description object. Empty if parsing fails. |
| + // |logging_xml|: xml file for logging without unique ID and serial number. |
| + ParseDialDeviceDescription(string device_description_xml_data) |
| + => (bool parse_result, |
| + DialDeviceDescription device_description, |
| + string logging_xml); |
| +}; |