Chromium Code Reviews| 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..99df263faccb80b69537deddc7ce3d5df1cb2975 |
| --- /dev/null |
| +++ b/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h |
| @@ -0,0 +1,42 @@ |
| +// 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); |
| + |
| + // UUID (UDN). |
| + std::string unique_id; |
| + |
| + // Short user-friendly title. |
|
mark a. foltz
2017/04/12 00:17:18
s/title/device name/ ?
zhaobin
2017/04/18 06:58:27
Done.
|
| + std::string friendly_name; |
| + |
| + // Model name. |
|
mark a. foltz
2017/04/12 00:17:18
Device model name
zhaobin
2017/04/18 06:58:27
Done.
|
| + std::string model_name; |
| + |
| + // The reported device type, e.g. urn:dial-multiscreen-org:device:dial:1 |
|
mark a. foltz
2017/04/12 00:17:18
Won't this always be the same for DIAL devices? I
zhaobin
2017/04/18 06:58:27
Done.
|
| + std::string device_type; |
| + |
| + // The application URL. |
|
mark a. foltz
2017/04/12 00:17:18
The DIAL application URL (used to launch DIAL appl
zhaobin
2017/04/18 06:58:27
Done.
|
| + GURL app_url; |
| +}; |
| + |
| +} // namespace media_router |
| + |
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_PARSED_DIAL_DEVICE_DESCRIPTION_H_ |