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

Unified Diff: content/public/common/presentation_connection_message.cc

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)
Patch Set: rebase Created 3 years, 5 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
« no previous file with comments | « content/public/common/presentation_connection_message.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/presentation_connection_message.cc
diff --git a/content/public/common/presentation_connection_message.cc b/content/public/common/presentation_connection_message.cc
index 222e2141ac37ace61f429447d9bac1ebe52d5003..41fc20117a0a03800a1572686d441017e37e4b7e 100644
--- a/content/public/common/presentation_connection_message.cc
+++ b/content/public/common/presentation_connection_message.cc
@@ -23,7 +23,13 @@ PresentationConnectionMessage::PresentationConnectionMessage(
: data(std::move(data)) {}
PresentationConnectionMessage::PresentationConnectionMessage(
- PresentationConnectionMessage&& other) = default;
+ const PresentationConnectionMessage& other) = default;
+
+// Note: "move constructor noexcept = default" currently does not compile on
+// Windows and Android (crbug.com/706963).
+PresentationConnectionMessage::PresentationConnectionMessage(
+ PresentationConnectionMessage&& other) noexcept
+ : message(std::move(other.message)), data(std::move(other.data)) {}
PresentationConnectionMessage::~PresentationConnectionMessage() {}
@@ -32,6 +38,9 @@ bool PresentationConnectionMessage::operator==(
return this->data == other.data && this->message == other.message;
}
+PresentationConnectionMessage& PresentationConnectionMessage::operator=(
+ const PresentationConnectionMessage& other) = default;
+
PresentationConnectionMessage& PresentationConnectionMessage::operator=(
PresentationConnectionMessage&& other) = default;
« no previous file with comments | « content/public/common/presentation_connection_message.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698