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

Side by Side Diff: services/shell/public/cpp/lib/interface_registry.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 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/shell/public/cpp/interface_registry.h" 5 #include "services/shell/public/cpp/interface_registry.h"
6 6
7 #include "mojo/shell/public/cpp/connection.h" 7 #include "services/shell/public/cpp/connection.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 InterfaceRegistry::InterfaceRegistry(Connection* connection) 11 InterfaceRegistry::InterfaceRegistry(Connection* connection)
12 : InterfaceRegistry(nullptr, connection) {} 12 : InterfaceRegistry(nullptr, connection) {}
13 13
14 InterfaceRegistry::InterfaceRegistry( 14 InterfaceRegistry::InterfaceRegistry(
15 shell::mojom::InterfaceProviderRequest request, 15 shell::mojom::InterfaceProviderRequest request,
16 Connection* connection) 16 Connection* connection)
17 : binding_(this), 17 : binding_(this),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void InterfaceRegistry::RemoveInterfaceBinderForName( 61 void InterfaceRegistry::RemoveInterfaceBinderForName(
62 const std::string& interface_name) { 62 const std::string& interface_name) {
63 NameToInterfaceBinderMap::iterator it = name_to_binder_.find(interface_name); 63 NameToInterfaceBinderMap::iterator it = name_to_binder_.find(interface_name);
64 if (it == name_to_binder_.end()) 64 if (it == name_to_binder_.end())
65 return; 65 return;
66 delete it->second; 66 delete it->second;
67 name_to_binder_.erase(it); 67 name_to_binder_.erase(it);
68 } 68 }
69 69
70 } // namespace mojo 70 } // namespace mojo
OLDNEW
« no previous file with comments | « services/shell/public/cpp/lib/interface_factory_binder.h ('k') | services/shell/public/cpp/lib/message_loop_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698