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_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 5 #ifndef SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 ~ConnectorImpl() override; | 21 ~ConnectorImpl() override; |
22 | 22 |
23 private: | 23 private: |
24 void OnConnectionError(); | 24 void OnConnectionError(); |
25 | 25 |
26 // Connector: | 26 // Connector: |
27 std::unique_ptr<Connection> Connect(const std::string& name) override; | 27 std::unique_ptr<Connection> Connect(const std::string& name) override; |
28 std::unique_ptr<Connection> Connect(ConnectParams* params) override; | 28 std::unique_ptr<Connection> Connect(ConnectParams* params) override; |
29 std::unique_ptr<Connector> Clone() override; | 29 std::unique_ptr<Connector> Clone() override; |
30 | 30 |
| 31 bool BindIfNecessary(); |
| 32 |
31 mojom::ConnectorPtrInfo unbound_state_; | 33 mojom::ConnectorPtrInfo unbound_state_; |
32 mojom::ConnectorPtr connector_; | 34 mojom::ConnectorPtr connector_; |
33 | 35 |
34 std::unique_ptr<base::ThreadChecker> thread_checker_; | 36 base::ThreadChecker thread_checker_; |
35 | 37 |
36 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl); | 38 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl); |
37 }; | 39 }; |
38 | 40 |
39 } // namespace shell | 41 } // namespace shell |
40 | 42 |
41 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ | 43 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
OLD | NEW |