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

Side by Side Diff: chrome/browser/media/router/discovery/dial/parsed_dial_device_description.cc

Issue 2701633002: [Media Router] Add DialMediaSinkService and DeviceDescriptionService (Closed)
Patch Set: fix chromeos compile error Created 3 years, 7 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 (c) 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 #include "chrome/browser/media/router/discovery/dial/parsed_dial_device_descript ion.h"
6
7 namespace media_router {
8
9 ParsedDialDeviceDescription::ParsedDialDeviceDescription() = default;
10
11 ParsedDialDeviceDescription::ParsedDialDeviceDescription(
12 const std::string& unique_id,
13 const std::string& friendly_name,
14 const GURL& app_url)
15 : unique_id(unique_id), friendly_name(friendly_name), app_url(app_url) {}
16
17 ParsedDialDeviceDescription::ParsedDialDeviceDescription(
18 const ParsedDialDeviceDescription& other) = default;
19 ParsedDialDeviceDescription::~ParsedDialDeviceDescription() = default;
20
21 ParsedDialDeviceDescription& ParsedDialDeviceDescription::operator=(
22 const ParsedDialDeviceDescription& other) {
23 if (this == &other)
24 return *this;
25
26 this->unique_id = other.unique_id;
27 this->friendly_name = other.friendly_name;
28 this->model_name = other.model_name;
29 this->app_url = other.app_url;
30
31 return *this;
32 }
33
34 bool ParsedDialDeviceDescription::operator==(
35 const ParsedDialDeviceDescription& other) const {
36 return unique_id == other.unique_id && friendly_name == other.friendly_name &&
37 model_name == other.model_name && app_url == other.app_url;
38 }
39
40 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698