| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |