OLD | NEW |
(Empty) | |
| 1 // Copyright 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 "mojo/edk/embedder/connection_params.h" |
| 6 |
| 7 #include <utility> |
| 8 |
| 9 namespace mojo { |
| 10 namespace edk { |
| 11 |
| 12 ConnectionParams::ConnectionParams(ScopedPlatformHandle channel) |
| 13 : channel_(std::move(channel)) {} |
| 14 |
| 15 ConnectionParams::ConnectionParams(ConnectionParams&& param) |
| 16 : channel_(std::move(param.channel_)) {} |
| 17 |
| 18 ConnectionParams& ConnectionParams::operator=(ConnectionParams&& param) { |
| 19 channel_ = std::move(param.channel_); |
| 20 return *this; |
| 21 } |
| 22 |
| 23 ScopedPlatformHandle ConnectionParams::TakeChannelHandle() { |
| 24 return std::move(channel_); |
| 25 } |
| 26 |
| 27 } // namespace edk |
| 28 } // namespace mojo |
OLD | NEW |