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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 | « ipc/ipc_channel_mojo_unittest.cc ('k') | ipc/ipc_sync_message_filter.h » ('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 (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
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
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_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_mojo_unittest.cc ('k') | ipc/ipc_sync_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698