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

Unified Diff: chrome/common/media_router/dial_device_description.h

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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/media_router/dial_device_description.h
diff --git a/chrome/common/media_router/dial_device_description.h b/chrome/common/media_router/dial_device_description.h
new file mode 100644
index 0000000000000000000000000000000000000000..b19a479063e6d4de0a375aea6a49c81647021495
--- /dev/null
+++ b/chrome/common/media_router/dial_device_description.h
@@ -0,0 +1,32 @@
+// 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.
+#ifndef CHROME_COMMON_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_H_
imcheng 2017/03/22 00:31:47 Insert empty line above
zhaobin 2017/03/22 01:55:32 Done.
+#define CHROME_COMMON_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_H_
+
+#include <string>
+
+namespace media_router {
+
+// Represents a DIAL device description.
+struct DialDeviceDescription {
+ DialDeviceDescription();
+ DialDeviceDescription(const DialDeviceDescription& other);
+ ~DialDeviceDescription();
+
+ // UUID (UDN).
+ std::string unique_id;
+
+ // Short user-friendly title.
+ std::string friendly_name;
+
+ // Model name.
+ std::string model_name;
+
+ // The reported device type, e.g. urn:dial-multiscreen-org:device:dial:1
+ std::string device_type;
+};
+
+} // namespace media_router
+
+#endif // CHROME_COMMON_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_H_

Powered by Google App Engine
This is Rietveld 408576698