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

Unified Diff: chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h

Issue 2701633002: [Media Router] Add DialMediaSinkService and DeviceDescriptionService (Closed)
Patch Set: fix chromeos compile error Created 3 years, 8 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/browser/media/router/discovery/dial/parsed_dial_device_description.h
diff --git a/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h b/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c066a17ddb7d8c6846718cb0a580d4a30a50e43
--- /dev/null
+++ b/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h
@@ -0,0 +1,41 @@
+// 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_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_PARSED_DIAL_DEVICE_DESCRIPTION_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_PARSED_DIAL_DEVICE_DESCRIPTION_H_
+
+#include <string>
+#include "url/gurl.h"
+
+namespace media_router {
+
+struct ParsedDialDeviceDescription {
+ ParsedDialDeviceDescription();
+ ParsedDialDeviceDescription(const std::string& unique_id,
+ const std::string& friendly_name,
+ const GURL& app_url);
+ ParsedDialDeviceDescription(const ParsedDialDeviceDescription& other);
+ ~ParsedDialDeviceDescription();
+
+ ParsedDialDeviceDescription& operator=(
+ const ParsedDialDeviceDescription& other);
+
+ bool operator==(const ParsedDialDeviceDescription& other) const;
+
+ // UUID (UDN).
+ std::string unique_id;
+
+ // Short user-friendly device name.
+ std::string friendly_name;
+
+ // Device model name.
+ std::string model_name;
+
+ // The DIAL application URL (used to launch DIAL applications).
+ GURL app_url;
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_PARSED_DIAL_DEVICE_DESCRIPTION_H_

Powered by Google App Engine
This is Rietveld 408576698