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

Unified 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, 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.cc
diff --git a/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.cc b/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a72e986312bd278c2274f4fe49b8b157189ec58b
--- /dev/null
+++ b/chrome/browser/media/router/discovery/dial/parsed_dial_device_description.cc
@@ -0,0 +1,40 @@
+// Copyright (c) 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.
+
+#include "chrome/browser/media/router/discovery/dial/parsed_dial_device_description.h"
+
+namespace media_router {
+
+ParsedDialDeviceDescription::ParsedDialDeviceDescription() = default;
+
+ParsedDialDeviceDescription::ParsedDialDeviceDescription(
+ const std::string& unique_id,
+ const std::string& friendly_name,
+ const GURL& app_url)
+ : unique_id(unique_id), friendly_name(friendly_name), app_url(app_url) {}
+
+ParsedDialDeviceDescription::ParsedDialDeviceDescription(
+ const ParsedDialDeviceDescription& other) = default;
+ParsedDialDeviceDescription::~ParsedDialDeviceDescription() = default;
+
+ParsedDialDeviceDescription& ParsedDialDeviceDescription::operator=(
+ const ParsedDialDeviceDescription& other) {
+ if (this == &other)
+ return *this;
+
+ this->unique_id = other.unique_id;
+ this->friendly_name = other.friendly_name;
+ this->model_name = other.model_name;
+ this->app_url = other.app_url;
+
+ return *this;
+}
+
+bool ParsedDialDeviceDescription::operator==(
+ const ParsedDialDeviceDescription& other) const {
+ return unique_id == other.unique_id && friendly_name == other.friendly_name &&
+ model_name == other.model_name && app_url == other.app_url;
+}
+
+} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698