• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/public/cpp/bindings/associated_group_controller.h"
6 
7 #include "mojo/public/cpp/bindings/associated_group.h"
8 
9 namespace mojo {
10 
AssociatedGroupController(scoped_refptr<base::SingleThreadTaskRunner> task_runner)11 AssociatedGroupController::AssociatedGroupController(
12     scoped_refptr<base::SingleThreadTaskRunner> task_runner)
13     : base::RefCountedDeleteOnMessageLoop<AssociatedGroupController>(
14           task_runner) {}
15 
~AssociatedGroupController()16 AssociatedGroupController::~AssociatedGroupController() {}
17 
18 std::unique_ptr<AssociatedGroup>
CreateAssociatedGroup()19 AssociatedGroupController::CreateAssociatedGroup() {
20   std::unique_ptr<AssociatedGroup> group(new AssociatedGroup);
21   group->controller_ = this;
22   return group;
23 }
24 
25 ScopedInterfaceEndpointHandle
CreateScopedInterfaceEndpointHandle(InterfaceId id,bool is_local)26 AssociatedGroupController::CreateScopedInterfaceEndpointHandle(
27     InterfaceId id,
28     bool is_local) {
29   return ScopedInterfaceEndpointHandle(id, is_local, this);
30 }
31 
32 }  // namespace mojo
33