1 // Copyright 2016 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/ports/port_ref.h" 6 7 #include "mojo/core/ports/port.h" 8 9 namespace mojo { 10 namespace core { 11 namespace ports { 12 ~PortRef()13PortRef::~PortRef() {} 14 PortRef()15PortRef::PortRef() {} 16 PortRef(const PortName & name,scoped_refptr<Port> port)17PortRef::PortRef(const PortName& name, scoped_refptr<Port> port) 18 : name_(name), port_(std::move(port)) {} 19 20 PortRef::PortRef(const PortRef& other) = default; 21 22 PortRef::PortRef(PortRef&& other) = default; 23 24 PortRef& PortRef::operator=(const PortRef& other) = default; 25 26 PortRef& PortRef::operator=(PortRef&& other) = default; 27 28 } // namespace ports 29 } // namespace core 30 } // namespace mojo 31