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

Side by Side Diff: mojo/public/cpp/bindings/lib/associated_group_controller.cc

Issue 2100683002: Mojo C++ Bindings: Extract AssociatedGroupController from MultiplexRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops more gyp ugh Created 4 years, 5 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/public/cpp/bindings/associated_group_controller.h"
6
7 #include "mojo/public/cpp/bindings/associated_group.h"
8
9 namespace mojo {
10
11 AssociatedGroupController::AssociatedGroupController(
12 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
13 : base::RefCountedDeleteOnMessageLoop<AssociatedGroupController>(
14 task_runner) {}
15
16 AssociatedGroupController::~AssociatedGroupController() {}
17
18 std::unique_ptr<AssociatedGroup>
19 AssociatedGroupController::CreateAssociatedGroup() {
20 std::unique_ptr<AssociatedGroup> group(new AssociatedGroup);
21 group->controller_ = this;
22 return group;
23 }
24
25 ScopedInterfaceEndpointHandle
26 AssociatedGroupController::CreateScopedInterfaceEndpointHandle(
27 InterfaceId id,
28 bool is_local) {
29 return ScopedInterfaceEndpointHandle(id, is_local, this);
30 }
31
32 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/associated_group.cc ('k') | mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698