Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/common/media_router/dial_device_description_parser.mojom

Issue 2745653008: [Media Router] Parse device description xml in utility process (Closed)
Patch Set: resolve code review comments from Mark Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // DIAL device description parsing interface provided by the utility process and
6 // exposed by mojo policy control to the chrome browser process.
7
8 module chrome.mojom;
9
10 struct DialDeviceDescription {
11 // UUID (UDN).
12 string unique_id;
13
14 // Short user-friendly title.
15 string friendly_name;
16
17 // Model name.
18 string model_name;
19
20 // The reported device type, e.g. urn:dial-multiscreen-org:device:dial:1
21 string device_type;
22 };
23
24 interface DialDeviceDescriptionParser {
25 // Parses |device_description_xml_data| to get device description data. If
26 // parsing succeeds, invokes callback with |parse_result| equals to true;
27 // otherwise invokes callback with |parse_result| equals to false.
28 // |device_description|: device description object. Empty if parsing fails.
29 // |logging_xml|: xml file for logging without unique ID and serial number.
mark a. foltz 2017/03/21 01:39:21 Is this empty if result == false?
zhaobin 2017/03/21 03:15:37 Removed :)
30 ParseDialDeviceDescription(string device_description_xml_data)
mark a. foltz 2017/03/21 01:39:21 Another API would be: => (bool success, DialDevic
zhaobin 2017/03/21 03:15:38 Done.
31 => (bool parse_result,
mark a. foltz 2017/03/21 01:39:21 s/parse_result/success/ ?
zhaobin 2017/03/21 03:15:37 Done.
32 DialDeviceDescription device_description,
33 string logging_xml);
mark a. foltz 2017/03/21 01:39:21 Could logging_xml be a field in DialDeviceDescript
mark a. foltz 2017/03/21 01:41:10 I realize that passing separately means we can log
zhaobin 2017/03/21 03:15:37 Removed logging related code in this patch. Will a
34 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698