OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
15 #include "services/shell/public/cpp/capabilities.h" | 15 #include "services/service_manager/public/cpp/capabilities.h" |
16 #include "services/shell/public/cpp/connection.h" | 16 #include "services/service_manager/public/cpp/connection.h" |
17 #include "services/shell/public/cpp/identity.h" | 17 #include "services/service_manager/public/cpp/identity.h" |
18 #include "services/shell/public/interfaces/connector.mojom.h" | 18 #include "services/service_manager/public/interfaces/connector.mojom.h" |
19 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 19 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" |
20 | 20 |
21 namespace shell { | 21 namespace shell { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
24 // A ConnectionImpl represents each half of a connection between two | 24 // A ConnectionImpl represents each half of a connection between two |
25 // applications, allowing customization of which interfaces are published to the | 25 // applications, allowing customization of which interfaces are published to the |
26 // other. | 26 // other. |
27 class ConnectionImpl : public Connection { | 27 class ConnectionImpl : public Connection { |
28 public: | 28 public: |
29 ConnectionImpl(); | 29 ConnectionImpl(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 std::unique_ptr<InterfaceProvider> remote_interfaces_owner_; | 65 std::unique_ptr<InterfaceProvider> remote_interfaces_owner_; |
66 | 66 |
67 base::WeakPtrFactory<ConnectionImpl> weak_factory_; | 67 base::WeakPtrFactory<ConnectionImpl> weak_factory_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); | 69 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace internal | 72 } // namespace internal |
73 } // namespace shell | 73 } // namespace shell |
74 | 74 |
75 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 75 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
OLD | NEW |