| Index: mojo/public/cpp/bindings/lib/associated_group.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/associated_group.cc b/mojo/public/cpp/bindings/lib/associated_group.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0bdf809d1ed47b8d6780bd9ddf1298f3c99dfe45
|
| --- /dev/null
|
| +++ b/mojo/public/cpp/bindings/lib/associated_group.cc
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2015 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/associated_group.h"
|
| +
|
| +#include "mojo/public/cpp/bindings/lib/multiplex_router.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +AssociatedGroup::AssociatedGroup() {}
|
| +
|
| +AssociatedGroup::AssociatedGroup(const AssociatedGroup& other)
|
| + : router_(other.router_) {}
|
| +
|
| +AssociatedGroup::~AssociatedGroup() {}
|
| +
|
| +AssociatedGroup& AssociatedGroup::operator=(const AssociatedGroup& other) {
|
| + if (this == &other)
|
| + return *this;
|
| +
|
| + router_ = other.router_;
|
| + return *this;
|
| +}
|
| +
|
| +void AssociatedGroup::CreateEndpointHandlePair(
|
| + internal::ScopedInterfaceEndpointHandle* local_endpoint,
|
| + internal::ScopedInterfaceEndpointHandle* remote_endpoint) {
|
| + if (!router_)
|
| + return;
|
| +
|
| + router_->CreateEndpointHandlePair(local_endpoint, remote_endpoint);
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|