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

Side by Side Diff: mojo/edk/embedder/connection_param.cc

Issue 2738853002: Connections now take a ConnectionParams instead of a pipe handle. (Closed)
Patch Set: Fix Win compile Created 3 years, 9 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 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_param.h"
6
7 #include <utility>
8
9 namespace mojo {
10 namespace edk {
11
12 ConnectionParam::ConnectionParam(ScopedPlatformHandle channel)
13 : channel_(std::move(channel)) {}
14
15 ConnectionParam::ConnectionParam(ConnectionParam&& param)
16 : channel_(std::move(param.channel_)) {}
17
18 ConnectionParam& ConnectionParam::operator=(ConnectionParam&& param) {
19 channel_ = std::move(param.channel_);
20 return *this;
21 }
22
23 ScopedPlatformHandle ConnectionParam::TakeChannelHandle() {
24 return std::move(channel_);
25 }
26
27 } // namespace edk
28 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698