connection_params.cc 813 B

123456789101112131415161718192021222324252627282930
  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. #include "mojo/core/connection_params.h"
  5. #include <utility>
  6. namespace mojo {
  7. namespace core {
  8. ConnectionParams::ConnectionParams() = default;
  9. ConnectionParams::ConnectionParams(PlatformChannelEndpoint endpoint)
  10. : endpoint_(std::move(endpoint)) {}
  11. ConnectionParams::ConnectionParams(
  12. PlatformChannelServerEndpoint server_endpoint)
  13. : server_endpoint_(std::move(server_endpoint)) {}
  14. ConnectionParams::ConnectionParams(ConnectionParams&&) = default;
  15. ConnectionParams::~ConnectionParams() = default;
  16. ConnectionParams& ConnectionParams::operator=(ConnectionParams&& params) =
  17. default;
  18. } // namespace core
  19. } // namespace mojo