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_PPB_GRAPHICS_2D_PROXY_H_ | 5 #ifndef PPAPI_PPB_GRAPHICS_2D_PROXY_H_ |
6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_ | 6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
11 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/c/pp_size.h" | 13 #include "ppapi/c/pp_size.h" |
14 #include "ppapi/c/pp_var.h" | 14 #include "ppapi/c/pp_var.h" |
15 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 16 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
17 #include "ppapi/shared_impl/host_resource.h" | 17 #include "ppapi/shared_impl/host_resource.h" |
18 #include "ppapi/utility/completion_callback_factory.h" | 18 #include "ppapi/utility/completion_callback_factory.h" |
19 | 19 |
20 struct PP_Point; | 20 struct PP_Point; |
21 struct PP_Rect; | 21 struct PP_Rect; |
22 | 22 |
23 namespace ppapi { | 23 namespace ppapi { |
24 namespace proxy { | 24 namespace proxy { |
25 | 25 |
26 class PPB_Graphics2D_Proxy : public InterfaceProxy { | 26 class PPB_Graphics2D_Proxy : public InterfaceProxy { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 float scale); | 59 float scale); |
60 | 60 |
61 // Host->plugin message handlers. | 61 // Host->plugin message handlers. |
62 void OnPluginMsgFlushACK(const HostResource& graphics_2d, | 62 void OnPluginMsgFlushACK(const HostResource& graphics_2d, |
63 int32_t pp_error); | 63 int32_t pp_error); |
64 | 64 |
65 // Called in the renderer to send the given flush ACK to the plugin. | 65 // Called in the renderer to send the given flush ACK to the plugin. |
66 void SendFlushACKToPlugin(int32_t result, | 66 void SendFlushACKToPlugin(int32_t result, |
67 const HostResource& graphics_2d); | 67 const HostResource& graphics_2d); |
68 | 68 |
69 pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy, | 69 ProxyCompletionCallbackFactory<PPB_Graphics2D_Proxy> callback_factory_; |
70 ProxyNonThreadSafeRefCount> callback_factory_; | |
71 | 70 |
72 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy); | 71 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy); |
73 }; | 72 }; |
74 | 73 |
75 } // namespace proxy | 74 } // namespace proxy |
76 } // namespace ppapi | 75 } // namespace ppapi |
77 | 76 |
78 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ | 77 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ |
OLD | NEW |