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_RESOURCE_CREATION_PROXY_H_ | 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
15 #include "ppapi/proxy/serialized_structs.h" | 15 #include "ppapi/proxy/serialized_structs.h" |
16 #include "ppapi/thunk/resource_creation_api.h" | 16 #include "ppapi/thunk/resource_creation_api.h" |
17 | 17 |
18 struct PP_Size; | 18 struct PP_Size; |
19 | 19 |
20 namespace ppapi { | 20 namespace ppapi { |
21 | 21 |
22 class HostResource; | 22 class HostResource; |
23 | 23 |
24 namespace thunk { | |
25 | |
26 class PPB_Graphics3D_API; | |
27 | |
28 } // namespace thunk | |
piman
2012/05/16 23:38:45
You shouldn't need that since it has to be implici
| |
29 | |
24 namespace proxy { | 30 namespace proxy { |
25 | 31 |
26 class Dispatcher; | 32 class Dispatcher; |
27 | 33 |
28 class ResourceCreationProxy : public InterfaceProxy, | 34 class ResourceCreationProxy : public InterfaceProxy, |
29 public thunk::ResourceCreationAPI { | 35 public thunk::ResourceCreationAPI { |
30 public: | 36 public: |
31 explicit ResourceCreationProxy(Dispatcher* dispatcher); | 37 explicit ResourceCreationProxy(Dispatcher* dispatcher); |
32 virtual ~ResourceCreationProxy(); | 38 virtual ~ResourceCreationProxy(); |
33 | 39 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 PP_Instance instance, | 104 PP_Instance instance, |
99 PP_FileChooserMode_Dev mode, | 105 PP_FileChooserMode_Dev mode, |
100 const char* accept_mime_types) OVERRIDE; | 106 const char* accept_mime_types) OVERRIDE; |
101 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 107 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
102 const PP_Flash_Menu* menu_data) OVERRIDE; | 108 const PP_Flash_Menu* menu_data) OVERRIDE; |
103 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; | 109 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; |
104 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, | 110 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, |
105 const PP_Size& size, | 111 const PP_Size& size, |
106 PP_Bool is_always_opaque) OVERRIDE; | 112 PP_Bool is_always_opaque) OVERRIDE; |
107 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 113 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
108 PP_Resource share_context, | 114 thunk::PPB_Graphics3D_API* share_context, |
109 const int32_t* attrib_list) OVERRIDE; | 115 const int32_t* attrib_list) OVERRIDE; |
110 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, | 116 virtual PP_Resource CreateGraphics3DRaw( |
111 PP_Resource share_context, | 117 PP_Instance instance, |
112 const int32_t* attrib_list) OVERRIDE; | 118 thunk::PPB_Graphics3D_API* share_context, |
119 const int32_t* attrib_list) OVERRIDE; | |
113 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; | 120 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; |
114 virtual PP_Resource CreateImageData(PP_Instance instance, | 121 virtual PP_Resource CreateImageData(PP_Instance instance, |
115 PP_ImageDataFormat format, | 122 PP_ImageDataFormat format, |
116 const PP_Size& size, | 123 const PP_Size& size, |
117 PP_Bool init_to_zero) OVERRIDE; | 124 PP_Bool init_to_zero) OVERRIDE; |
118 virtual PP_Resource CreateNetworkMonitor( | 125 virtual PP_Resource CreateNetworkMonitor( |
119 PP_Instance instance, | 126 PP_Instance instance, |
120 PPB_NetworkMonitor_Callback callback, | 127 PPB_NetworkMonitor_Callback callback, |
121 void* user_data) OVERRIDE; | 128 void* user_data) OVERRIDE; |
122 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 129 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
(...skipping 22 matching lines...) Expand all Loading... | |
145 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 152 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
146 | 153 |
147 private: | 154 private: |
148 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 155 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
149 }; | 156 }; |
150 | 157 |
151 } // namespace proxy | 158 } // namespace proxy |
152 } // namespace ppapi | 159 } // namespace ppapi |
153 | 160 |
154 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 161 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
OLD | NEW |