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 PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/proxy/interface_proxy.h" | 12 #include "ppapi/proxy/interface_proxy.h" |
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 13 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
14 #include "ppapi/shared_impl/host_resource.h" | 14 #include "ppapi/shared_impl/host_resource.h" |
15 #include "ppapi/shared_impl/ppb_instance_shared.h" | 15 #include "ppapi/shared_impl/ppb_instance_shared.h" |
16 #include "ppapi/thunk/ppb_instance_api.h" | 16 #include "ppapi/thunk/ppb_instance_api.h" |
17 #include "ppapi/utility/completion_callback_factory.h" | 17 #include "ppapi/utility/completion_callback_factory.h" |
18 | 18 |
19 // Windows headers interfere with this file. | 19 // Windows headers interfere with this file. |
20 #ifdef PostMessage | 20 #ifdef PostMessage |
21 #undef PostMessage | 21 #undef PostMessage |
22 #endif | 22 #endif |
23 | 23 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 SerializedVarReturnValue result); | 187 SerializedVarReturnValue result); |
188 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, | 188 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, |
189 SerializedVarReturnValue result); | 189 SerializedVarReturnValue result); |
190 #endif // !defined(OS_NACL) | 190 #endif // !defined(OS_NACL) |
191 | 191 |
192 // Host -> Plugin message handlers. | 192 // Host -> Plugin message handlers. |
193 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 193 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
194 | 194 |
195 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 195 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
196 | 196 |
197 pp::CompletionCallbackFactory<PPB_Instance_Proxy, | 197 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
198 ProxyNonThreadSafeRefCount> callback_factory_; | |
199 }; | 198 }; |
200 | 199 |
201 } // namespace proxy | 200 } // namespace proxy |
202 } // namespace ppapi | 201 } // namespace ppapi |
203 | 202 |
204 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 203 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |