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

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

Issue 2185723002: Eliminate deferred destruction of AssociatedGroupController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « mojo/public/cpp/bindings/connector.h ('k') | mojo/public/cpp/bindings/lib/connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/connector.h ('k') | mojo/public/cpp/bindings/lib/connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698