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

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

Issue 2738853002: Connections now take a ConnectionParams instead of a pipe handle. (Closed)
Patch Set: Fix Win release build. 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
« no previous file with comments | « mojo/edk/embedder/connection_params.h ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
OLDNEW
« no previous file with comments | « mojo/edk/embedder/connection_params.h ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698