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/service_manager/public/cpp/interface_registry.h" | 5 #include "services/service_manager/public/cpp/interface_registry.h" |
6 | 6 |
| 7 #include <iterator> |
7 #include <sstream> | 8 #include <sstream> |
8 | 9 |
9 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
10 #include "mojo/public/cpp/bindings/message.h" | 11 #include "mojo/public/cpp/bindings/message.h" |
11 #include "services/service_manager/public/cpp/connection.h" | 12 #include "services/service_manager/public/cpp/connection.h" |
12 | 13 |
13 namespace service_manager { | 14 namespace service_manager { |
14 namespace { | 15 namespace { |
15 | 16 |
16 void SerializeIdentity(const Identity& identity, std::stringstream* stream) { | 17 void SerializeIdentity(const Identity& identity, std::stringstream* stream) { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 exposed_interfaces_.size() == 1 && exposed_interfaces_.count("*") == 1; | 252 exposed_interfaces_.size() == 1 && exposed_interfaces_.count("*") == 1; |
252 } | 253 } |
253 | 254 |
254 void InterfaceRegistry::OnConnectionError() { | 255 void InterfaceRegistry::OnConnectionError() { |
255 std::list<base::Closure> closures = connection_lost_closures_; | 256 std::list<base::Closure> closures = connection_lost_closures_; |
256 for (const auto& closure : closures) | 257 for (const auto& closure : closures) |
257 closure.Run(); | 258 closure.Run(); |
258 } | 259 } |
259 | 260 |
260 } // namespace service_manager | 261 } // namespace service_manager |
OLD | NEW |