• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 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/public/cpp/platform/platform_channel_server_endpoint.h"
6 
7 namespace mojo {
8 
9 PlatformChannelServerEndpoint::PlatformChannelServerEndpoint() = default;
10 
11 PlatformChannelServerEndpoint::PlatformChannelServerEndpoint(
12     PlatformChannelServerEndpoint&& other) = default;
13 
PlatformChannelServerEndpoint(PlatformHandle handle)14 PlatformChannelServerEndpoint::PlatformChannelServerEndpoint(
15     PlatformHandle handle)
16     : handle_(std::move(handle)) {}
17 
18 PlatformChannelServerEndpoint::~PlatformChannelServerEndpoint() = default;
19 
20 PlatformChannelServerEndpoint& PlatformChannelServerEndpoint::operator=(
21     PlatformChannelServerEndpoint&& other) = default;
22 
reset()23 void PlatformChannelServerEndpoint::reset() {
24   handle_.reset();
25 }
26 
Clone() const27 PlatformChannelServerEndpoint PlatformChannelServerEndpoint::Clone() const {
28   return PlatformChannelServerEndpoint(handle_.Clone());
29 }
30 
31 }  // namespace mojo
32