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 // This file provides infrastructure for dispatching messasges from host | 5 // This file provides infrastructure for dispatching messasges from host |
6 // resource, inlcuding reply messages or unsolicited replies. Normal IPC Reply | 6 // resource, inlcuding reply messages or unsolicited replies. Normal IPC Reply |
7 // handlers can't take extra parameters. We want to take a | 7 // handlers can't take extra parameters. We want to take a |
8 // ResourceMessageReplyParams as a parameter. | 8 // ResourceMessageReplyParams as a parameter. |
9 | 9 |
10 #ifndef PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ | 10 #ifndef PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ |
11 #define PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ | 11 #define PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/profiler/scoped_profile.h" // For TRACK_RUN_IN_IPC_HANDLER. | |
15 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
16 #include "ppapi/c/pp_errors.h" | 15 #include "ppapi/c/pp_errors.h" |
17 | 16 |
18 namespace ppapi { | 17 namespace ppapi { |
19 namespace proxy { | 18 namespace proxy { |
20 | 19 |
21 class ResourceMessageReplyParams; | 20 class ResourceMessageReplyParams; |
22 | 21 |
23 template <class ObjT, class Method> | 22 template <class ObjT, class Method> |
24 inline void DispatchResourceReply(ObjT* obj, Method method, | 23 inline void DispatchResourceReply(ObjT* obj, Method method, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 break; | 168 break; |
170 | 169 |
171 #define PPAPI_END_MESSAGE_MAP() \ | 170 #define PPAPI_END_MESSAGE_MAP() \ |
172 } \ | 171 } \ |
173 } | 172 } |
174 | 173 |
175 } // namespace proxy | 174 } // namespace proxy |
176 } // namespace ppapi | 175 } // namespace ppapi |
177 | 176 |
178 #endif // PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ | 177 #endif // PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ |
OLD | NEW |