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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 "services/shell/public/cpp/interface_registry.h" 5 #include "services/service_manager/public/cpp/interface_registry.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "mojo/public/cpp/bindings/message.h" 9 #include "mojo/public/cpp/bindings/message.h"
10 #include "services/shell/public/cpp/connection.h" 10 #include "services/service_manager/public/cpp/connection.h"
11 11
12 namespace shell { 12 namespace shell {
13 13
14 InterfaceRegistry::InterfaceRegistry() 14 InterfaceRegistry::InterfaceRegistry()
15 : binding_(this), allow_all_interfaces_(true), weak_factory_(this) {} 15 : binding_(this), allow_all_interfaces_(true), weak_factory_(this) {}
16 16
17 InterfaceRegistry::InterfaceRegistry( 17 InterfaceRegistry::InterfaceRegistry(
18 const Identity& local_identity, 18 const Identity& local_identity,
19 const Identity& remote_identity, 19 const Identity& remote_identity,
20 const Interfaces& allowed_interfaces) 20 const Interfaces& allowed_interfaces)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 return false; 121 return false;
122 } 122 }
123 123
124 bool InterfaceRegistry::CanBindRequestForInterface( 124 bool InterfaceRegistry::CanBindRequestForInterface(
125 const std::string& interface_name) const { 125 const std::string& interface_name) const {
126 return allow_all_interfaces_ || allowed_interfaces_.count(interface_name); 126 return allow_all_interfaces_ || allowed_interfaces_.count(interface_name);
127 } 127 }
128 128
129 } // namespace shell 129 } // namespace shell
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/lib/interface_provider.cc ('k') | services/service_manager/public/cpp/lib/names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698