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

Side by Side Diff: ppapi/host/dispatch_host_message.h

Issue 11267034: Provide IPC mechanism for host-to-resource messaging (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reuse existing dispatch_reply_message.h Created 8 years, 1 month 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
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 // This file provides infrastructure for dispatching host resource call 5 // This file provides infrastructure for dispatching host resource call
6 // messages. Normal IPC message handlers can't take extra parameters or 6 // messages. Normal IPC message handlers can't take extra parameters or
7 // return values. We want to take a HostMessageContext as a parameter and 7 // return values. We want to take a HostMessageContext as a parameter and
8 // also return the int32_t return value to the caller. 8 // also return the int32_t return value to the caller.
9 9
10 #ifndef PPAPI_HOST_DISPATCH_HOST_MESSAGE_H_ 10 #ifndef PPAPI_HOST_DISPATCH_HOST_MESSAGE_H_
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #define PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(msg_class, member_func) \ 80 #define PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(msg_class, member_func) \
81 case msg_class::ID: { \ 81 case msg_class::ID: { \
82 TRACK_RUN_IN_IPC_HANDLER(member_func); \ 82 TRACK_RUN_IN_IPC_HANDLER(member_func); \
83 return member_func(context); \ 83 return member_func(context); \
84 } 84 }
85 85
86 } // namespace host 86 } // namespace host
87 } // namespace ppapi 87 } // namespace ppapi
88 88
89 #endif // PPAPI_HOST_DISPATCH_HOST_MESSAGE_H_ 89 #endif // PPAPI_HOST_DISPATCH_HOST_MESSAGE_H_
90
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/dispatch_reply_message.h » ('j') | ppapi/proxy/dispatch_reply_message.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698