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

Side by Side Diff: mojo/edk/system/ports/port_ref.cc

Issue 1585493002: [mojo] Ports EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
(Empty)
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/edk/system/ports/port_ref.h"
6
7 #include "mojo/edk/system/ports/port.h"
8
9 namespace mojo {
10 namespace edk {
11 namespace ports {
12
13 PortRef::~PortRef() {
14 }
15
16 PortRef::PortRef() {
17 }
18
19 PortRef::PortRef(const PortName& name, const scoped_refptr<Port>& port)
20 : name_(name), port_(port) {
21 }
22
23 PortRef::PortRef(const PortRef& other)
24 : name_(other.name_), port_(other.port_) {
25 }
26
27 PortRef& PortRef::operator=(const PortRef& other) {
28 if (&other != this) {
29 name_ = other.name_;
30 port_ = other.port_;
31 }
32 return *this;
33 }
34
35 } // namespace ports
36 } // namespace edk
37 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698