OLD | NEW |
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 #ifndef MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ | 5 #ifndef MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ | 6 #define MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | 11 #include "mojo/public/cpp/system/message_pipe.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 | 14 |
15 class ApplicationConnection; | 15 class ApplicationConnection; |
16 class ServiceConnector; | 16 class ServiceConnector; |
17 | 17 |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 // ServiceConnectorRegistry maintains a default ServiceConnector as well as at | 20 // ServiceConnectorRegistry maintains a default ServiceConnector as well as at |
21 // most one ServiceConnector per interface name. When ConnectToService() is | 21 // most one ServiceConnector per interface name. When ConnectToService() is |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 NameToServiceConnectorMap name_to_service_connector_; | 54 NameToServiceConnectorMap name_to_service_connector_; |
55 | 55 |
56 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceConnectorRegistry); | 56 MOJO_DISALLOW_COPY_AND_ASSIGN(ServiceConnectorRegistry); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace internal | 59 } // namespace internal |
60 } // namespace mojo | 60 } // namespace mojo |
61 | 61 |
62 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ | 62 #endif // MOJO_APPLICATION_PUBLIC_CPP_LIB_SERVICE_CONNECTOR_REGISTRY_H_ |
OLD | NEW |