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/profiler/scoped_profile.h" // For TRACK_RUN_IN_IPC_HANDLER. | 14 #include "base/profiler/scoped_profile.h" // For TRACK_RUN_IN_IPC_HANDLER. |
14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
15 #include "ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
16 | 17 |
17 namespace ppapi { | 18 namespace ppapi { |
18 namespace proxy { | 19 namespace proxy { |
19 | 20 |
20 class ResourceMessageReplyParams; | 21 class ResourceMessageReplyParams; |
21 | 22 |
22 template <class ObjT, class Method> | 23 template <class ObjT, class Method> |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 #define PPAPI_DISPATCH_PLUGIN_RESOURCE_CALL_UNHANDLED(code) \ | 155 #define PPAPI_DISPATCH_PLUGIN_RESOURCE_CALL_UNHANDLED(code) \ |
155 default: { \ | 156 default: { \ |
156 code; \ | 157 code; \ |
157 } \ | 158 } \ |
158 break; | 159 break; |
159 | 160 |
160 } // namespace proxy | 161 } // namespace proxy |
161 } // namespace ppapi | 162 } // namespace ppapi |
162 | 163 |
163 #endif // PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ | 164 #endif // PPAPI_PROXY_DISPATCH_REPLY_MESSAGE_H_ |
OLD | NEW |