Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: mojo/shell/public/cpp/lib/connection_impl.h

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/public/cpp/connection.h ('k') | mojo/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/connection.h ('k') | mojo/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698