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 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Connector: | 27 // Connector: |
28 void StartService(const Identity& identity) override; | 28 void StartService(const Identity& identity) override; |
29 void StartService(const std::string& name) override; | 29 void StartService(const std::string& name) override; |
30 void StartService(const Identity& identity, | 30 void StartService(const Identity& identity, |
31 mojom::ServicePtr service, | 31 mojom::ServicePtr service, |
32 mojom::PIDReceiverRequest pid_receiver_request) override; | 32 mojom::PIDReceiverRequest pid_receiver_request) override; |
33 void BindInterface(const Identity& target, | 33 void BindInterface(const Identity& target, |
34 const std::string& interface_name, | 34 const std::string& interface_name, |
35 mojo::ScopedMessagePipeHandle interface_pipe) override; | 35 mojo::ScopedMessagePipeHandle interface_pipe) override; |
36 std::unique_ptr<Connector> Clone() override; | 36 std::unique_ptr<Connector> Clone() override; |
| 37 void FilterInterfaces(const std::string& spec, |
| 38 const Identity& source_identity, |
| 39 mojom::InterfaceProviderRequest request, |
| 40 mojom::InterfaceProviderPtr target) override; |
37 void BindConnectorRequest(mojom::ConnectorRequest request) override; | 41 void BindConnectorRequest(mojom::ConnectorRequest request) override; |
38 base::WeakPtr<Connector> GetWeakPtr() override; | 42 base::WeakPtr<Connector> GetWeakPtr() override; |
39 void OverrideBinderForTesting(const std::string& service_name, | 43 void OverrideBinderForTesting(const std::string& service_name, |
40 const std::string& interface_name, | 44 const std::string& interface_name, |
41 const TestApi::Binder& binder) override; | 45 const TestApi::Binder& binder) override; |
42 void ClearBinderOverrides() override; | 46 void ClearBinderOverrides() override; |
43 void SetStartServiceCallback(const StartServiceCallback& callback) override; | 47 void SetStartServiceCallback(const StartServiceCallback& callback) override; |
44 void ResetStartServiceCallback() override; | 48 void ResetStartServiceCallback() override; |
45 | 49 |
46 bool BindConnectorIfNecessary(); | 50 bool BindConnectorIfNecessary(); |
(...skipping 13 matching lines...) Expand all Loading... |
60 Connector::StartServiceCallback start_service_callback_; | 64 Connector::StartServiceCallback start_service_callback_; |
61 | 65 |
62 base::WeakPtrFactory<ConnectorImpl> weak_factory_; | 66 base::WeakPtrFactory<ConnectorImpl> weak_factory_; |
63 | 67 |
64 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl); | 68 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl); |
65 }; | 69 }; |
66 | 70 |
67 } // namespace service_manager | 71 } // namespace service_manager |
68 | 72 |
69 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 73 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
OLD | NEW |