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

Unified Diff: chrome/common/media_router/dial_device_description_parser.mojom

Issue 2745653008: [Media Router] Parse device description xml in utility process (Closed)
Patch Set: fix android build error 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/media_router/OWNERS ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..09ed517ed4acbdf5dbeb945f3ba0d35e47237f08
--- /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.
+ string model_name;
+
+ // The reported device type, e.g. urn:dial-multiscreen-org:device:dial:1
+ string device_type;
+};
+
+interface DialDeviceDescriptionParser {
+ // Parses |device_description_xml_data| to get device description data. If
+ // parsing succeeds, invokes callback with valid |device_description|.
+ // Otherwise invokes callback with nullptr.
+ // |device_description|: device description object. Empty if parsing fails.
+ // Spec for DIAL device description:
+ // http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v2.0.pdf
+ // Section 2.3 Device description.
+ ParseDialDeviceDescription(string device_description_xml_data)
+ => (DialDeviceDescription? device_description);
+};
« no previous file with comments | « chrome/common/media_router/OWNERS ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698