| Index: mojo/public/cpp/bindings/interface_ptr_info.cc
|
| diff --git a/mojo/public/cpp/bindings/interface_ptr_info.cc b/mojo/public/cpp/bindings/interface_ptr_info.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..19da4ced06884c024f22a9a4e3db9fd4e6646372
|
| --- /dev/null
|
| +++ b/mojo/public/cpp/bindings/interface_ptr_info.cc
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "mojo/public/cpp/bindings/interface_ptr_info.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +InterfacePtrInfoBase::InterfacePtrInfoBase() : version_(0u) {}
|
| +
|
| +InterfacePtrInfoBase::InterfacePtrInfoBase(ScopedMessagePipeHandle handle,
|
| + uint32_t version)
|
| + : handle_(std::move(handle)), version_(version) {}
|
| +
|
| +InterfacePtrInfoBase::InterfacePtrInfoBase(InterfacePtrInfoBase&& other)
|
| + : handle_(std::move(other.handle_)), version_(other.version_) {
|
| + other.version_ = 0u;
|
| +}
|
| +
|
| +InterfacePtrInfoBase::~InterfacePtrInfoBase() {}
|
| +
|
| +InterfacePtrInfoBase& InterfacePtrInfoBase::operator=(
|
| + InterfacePtrInfoBase&& other) {
|
| + if (this != &other) {
|
| + handle_ = std::move(other.handle_);
|
| + version_ = other.version_;
|
| + other.version_ = 0u;
|
| + }
|
| +
|
| + return *this;
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|