| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/public/cpp/bindings/associated_group_controller.h" | 5 #include "mojo/public/cpp/bindings/associated_group_controller.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/bindings/associated_group.h" | 7 #include "mojo/public/cpp/bindings/associated_group.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 | 10 |
| 11 AssociatedGroupController::AssociatedGroupController( | |
| 12 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | |
| 13 : base::RefCountedDeleteOnMessageLoop<AssociatedGroupController>( | |
| 14 task_runner) {} | |
| 15 | |
| 16 AssociatedGroupController::~AssociatedGroupController() {} | 11 AssociatedGroupController::~AssociatedGroupController() {} |
| 17 | 12 |
| 18 std::unique_ptr<AssociatedGroup> | 13 std::unique_ptr<AssociatedGroup> |
| 19 AssociatedGroupController::CreateAssociatedGroup() { | 14 AssociatedGroupController::CreateAssociatedGroup() { |
| 20 std::unique_ptr<AssociatedGroup> group(new AssociatedGroup); | 15 std::unique_ptr<AssociatedGroup> group(new AssociatedGroup); |
| 21 group->controller_ = this; | 16 group->controller_ = this; |
| 22 return group; | 17 return group; |
| 23 } | 18 } |
| 24 | 19 |
| 25 ScopedInterfaceEndpointHandle | 20 ScopedInterfaceEndpointHandle |
| 26 AssociatedGroupController::CreateScopedInterfaceEndpointHandle( | 21 AssociatedGroupController::CreateScopedInterfaceEndpointHandle( |
| 27 InterfaceId id, | 22 InterfaceId id, |
| 28 bool is_local) { | 23 bool is_local) { |
| 29 return ScopedInterfaceEndpointHandle(id, is_local, this); | 24 return ScopedInterfaceEndpointHandle(id, is_local, this); |
| 30 } | 25 } |
| 31 | 26 |
| 32 } // namespace mojo | 27 } // namespace mojo |
| OLD | NEW |