• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/core/connection_params.h"
6 
7 #include <utility>
8 
9 #include "base/logging.h"
10 
11 namespace mojo {
12 namespace core {
13 
14 ConnectionParams::ConnectionParams() = default;
15 
ConnectionParams(PlatformChannelEndpoint endpoint)16 ConnectionParams::ConnectionParams(PlatformChannelEndpoint endpoint)
17     : endpoint_(std::move(endpoint)) {}
18 
ConnectionParams(PlatformChannelServerEndpoint server_endpoint)19 ConnectionParams::ConnectionParams(
20     PlatformChannelServerEndpoint server_endpoint)
21     : server_endpoint_(std::move(server_endpoint)) {}
22 
23 ConnectionParams::ConnectionParams(ConnectionParams&&) = default;
24 
25 ConnectionParams::~ConnectionParams() = default;
26 
27 ConnectionParams& ConnectionParams::operator=(ConnectionParams&& params) =
28     default;
29 
30 }  // namespace core
31 }  // namespace mojo
32