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 MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 5 #ifndef MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
6 #define MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 6 #define MOJO_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 | 58 |
59 private: | 59 private: |
60 using NameToInterfaceBinderMap = std::map<std::string, InterfaceBinder*>; | 60 using NameToInterfaceBinderMap = std::map<std::string, InterfaceBinder*>; |
61 | 61 |
62 // Connection overrides. | 62 // Connection overrides. |
63 void SetDefaultInterfaceBinder(InterfaceBinder* binder) override; | 63 void SetDefaultInterfaceBinder(InterfaceBinder* binder) override; |
64 bool SetInterfaceBinderForName(InterfaceBinder* binder, | 64 bool SetInterfaceBinderForName(InterfaceBinder* binder, |
65 const std::string& interface_name) override; | 65 const std::string& interface_name) override; |
66 const std::string& GetConnectionURL() override; | 66 const std::string& GetConnectionURL() override; |
67 const std::string& GetRemoteApplicationURL() override; | 67 const std::string& GetRemoteApplicationURL() override; |
68 ServiceProvider* GetServiceProvider() override; | 68 ServiceProvider* GetRemoteInterfaces() override; |
69 ServiceProvider* GetLocalServiceProvider() override; | 69 ServiceProvider* GetLocalInterfaces() override; |
70 void SetRemoteServiceProviderConnectionErrorHandler( | 70 void SetRemoteServiceProviderConnectionErrorHandler( |
71 const Closure& handler) override; | 71 const Closure& handler) override; |
72 bool GetRemoteApplicationID(uint32_t* remote_id) const override; | 72 bool GetRemoteApplicationID(uint32_t* remote_id) const override; |
73 bool GetRemoteContentHandlerID(uint32_t* content_handler_id) const override; | 73 bool GetRemoteContentHandlerID(uint32_t* content_handler_id) const override; |
74 void AddRemoteIDCallback(const Closure& callback) override; | 74 void AddRemoteIDCallback(const Closure& callback) override; |
75 base::WeakPtr<Connection> GetWeakPtr() override; | 75 base::WeakPtr<Connection> GetWeakPtr() override; |
76 | 76 |
77 // ServiceProvider method. | 77 // ServiceProvider method. |
78 void ConnectToService(const mojo::String& service_name, | 78 void ConnectToService(const mojo::String& service_name, |
79 ScopedMessagePipeHandle handle) override; | 79 ScopedMessagePipeHandle handle) override; |
(...skipping 23 matching lines...) Expand all Loading... |
103 | 103 |
104 base::WeakPtrFactory<ConnectionImpl> weak_factory_; | 104 base::WeakPtrFactory<ConnectionImpl> weak_factory_; |
105 | 105 |
106 MOJO_DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); | 106 MOJO_DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace internal | 109 } // namespace internal |
110 } // namespace mojo | 110 } // namespace mojo |
111 | 111 |
112 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ | 112 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ |
OLD | NEW |