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_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Connection: | 58 // Connection: |
59 bool HasCapabilityClass(const std::string& class_name) const override; | 59 bool HasCapabilityClass(const std::string& class_name) const override; |
60 const std::string& GetConnectionName() override; | 60 const std::string& GetConnectionName() override; |
61 const Identity& GetRemoteIdentity() const override; | 61 const Identity& GetRemoteIdentity() const override; |
62 void SetConnectionLostClosure(const base::Closure& handler) override; | 62 void SetConnectionLostClosure(const base::Closure& handler) override; |
63 shell::mojom::ConnectResult GetResult() const override; | 63 shell::mojom::ConnectResult GetResult() const override; |
64 bool IsPending() const override; | 64 bool IsPending() const override; |
65 uint32_t GetRemoteInstanceID() const override; | 65 uint32_t GetRemoteInstanceID() const override; |
66 void AddConnectionCompletedClosure(const base::Closure& callback) override; | 66 void AddConnectionCompletedClosure(const base::Closure& callback) override; |
67 bool AllowsInterface(const std::string& interface_name) const override; | 67 bool AllowsInterface(const std::string& interface_name) const override; |
68 mojom::InterfaceProvider* GetRemoteInterfaceProvider() override; | |
69 InterfaceRegistry* GetInterfaceRegistry() override; | 68 InterfaceRegistry* GetInterfaceRegistry() override; |
70 InterfaceProvider* GetRemoteInterfaces() override; | 69 InterfaceProvider* GetRemoteInterfaces() override; |
71 base::WeakPtr<Connection> GetWeakPtr() override; | 70 base::WeakPtr<Connection> GetWeakPtr() override; |
72 | 71 |
73 void OnConnectionCompleted(shell::mojom::ConnectResult result, | 72 void OnConnectionCompleted(shell::mojom::ConnectResult result, |
74 mojo::String target_user_id, | 73 mojo::String target_user_id, |
75 uint32_t target_application_id); | 74 uint32_t target_application_id); |
76 | 75 |
77 const std::string connection_name_; | 76 const std::string connection_name_; |
78 Identity remote_; | 77 Identity remote_; |
(...skipping 14 matching lines...) Expand all Loading... |
93 | 92 |
94 base::WeakPtrFactory<ConnectionImpl> weak_factory_; | 93 base::WeakPtrFactory<ConnectionImpl> weak_factory_; |
95 | 94 |
96 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); | 95 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); |
97 }; | 96 }; |
98 | 97 |
99 } // namespace internal | 98 } // namespace internal |
100 } // namespace shell | 99 } // namespace shell |
101 | 100 |
102 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 101 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
OLD | NEW |