OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 IPC_IPC_CHANNEL_PROXY_H_ | 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_ |
6 #define IPC_IPC_CHANNEL_PROXY_H_ | 6 #define IPC_IPC_CHANNEL_PROXY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Requests an associated interface from the remote endpoint. | 212 // Requests an associated interface from the remote endpoint. |
213 void GetGenericRemoteAssociatedInterface( | 213 void GetGenericRemoteAssociatedInterface( |
214 const std::string& name, | 214 const std::string& name, |
215 mojo::ScopedInterfaceEndpointHandle handle); | 215 mojo::ScopedInterfaceEndpointHandle handle); |
216 | 216 |
217 // Template helper to request associated interfaces from the remote endpoint. | 217 // Template helper to request associated interfaces from the remote endpoint. |
218 template <typename Interface> | 218 template <typename Interface> |
219 void GetRemoteAssociatedInterface( | 219 void GetRemoteAssociatedInterface( |
220 mojo::AssociatedInterfacePtr<Interface>* proxy) { | 220 mojo::AssociatedInterfacePtr<Interface>* proxy) { |
221 mojo::AssociatedInterfaceRequest<Interface> request = | 221 mojo::AssociatedInterfaceRequest<Interface> request = |
222 mojo::GetProxy(proxy, GetAssociatedGroup()); | 222 mojo::MakeRequest(proxy, GetAssociatedGroup()); |
223 GetGenericRemoteAssociatedInterface(Interface::Name_, request.PassHandle()); | 223 GetGenericRemoteAssociatedInterface(Interface::Name_, request.PassHandle()); |
224 } | 224 } |
225 | 225 |
226 #if defined(ENABLE_IPC_FUZZER) | 226 #if defined(ENABLE_IPC_FUZZER) |
227 void set_outgoing_message_filter(OutgoingMessageFilter* filter) { | 227 void set_outgoing_message_filter(OutgoingMessageFilter* filter) { |
228 outgoing_message_filter_ = filter; | 228 outgoing_message_filter_ = filter; |
229 } | 229 } |
230 #endif | 230 #endif |
231 | 231 |
232 template <typename Interface> | 232 template <typename Interface> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 bool did_init_; | 422 bool did_init_; |
423 | 423 |
424 #if defined(ENABLE_IPC_FUZZER) | 424 #if defined(ENABLE_IPC_FUZZER) |
425 OutgoingMessageFilter* outgoing_message_filter_; | 425 OutgoingMessageFilter* outgoing_message_filter_; |
426 #endif | 426 #endif |
427 }; | 427 }; |
428 | 428 |
429 } // namespace IPC | 429 } // namespace IPC |
430 | 430 |
431 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 431 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
OLD | NEW |