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

Side by Side Diff: mojo/public/cpp/bindings/lib/associated_group.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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.h" 5 #include "mojo/public/cpp/bindings/associated_group.h"
6 6
7 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" 7 #include "mojo/public/cpp/bindings/associated_group_controller.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 AssociatedGroup::AssociatedGroup() {} 11 AssociatedGroup::AssociatedGroup() {}
12 12
13 AssociatedGroup::AssociatedGroup(const AssociatedGroup& other) 13 AssociatedGroup::AssociatedGroup(const AssociatedGroup& other)
14 : router_(other.router_) {} 14 : controller_(other.controller_) {}
15 15
16 AssociatedGroup::~AssociatedGroup() {} 16 AssociatedGroup::~AssociatedGroup() {}
17 17
18 AssociatedGroup& AssociatedGroup::operator=(const AssociatedGroup& other) { 18 AssociatedGroup& AssociatedGroup::operator=(const AssociatedGroup& other) {
19 if (this == &other) 19 if (this == &other)
20 return *this; 20 return *this;
21 21
22 router_ = other.router_; 22 controller_ = other.controller_;
23 return *this; 23 return *this;
24 } 24 }
25 25
26 void AssociatedGroup::CreateEndpointHandlePair( 26 void AssociatedGroup::CreateEndpointHandlePair(
27 ScopedInterfaceEndpointHandle* local_endpoint, 27 ScopedInterfaceEndpointHandle* local_endpoint,
28 ScopedInterfaceEndpointHandle* remote_endpoint) { 28 ScopedInterfaceEndpointHandle* remote_endpoint) {
29 if (!router_) 29 if (!controller_)
30 return; 30 return;
31 31
32 router_->CreateEndpointHandlePair(local_endpoint, remote_endpoint); 32 controller_->CreateEndpointHandlePair(local_endpoint, remote_endpoint);
33 } 33 }
34 34
35 } // namespace mojo 35 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/interface_id.h ('k') | mojo/public/cpp/bindings/lib/associated_group_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698