Chromium Code Reviews| 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_THUNK_RESOURCE_CREATION_API_H_ | 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| 11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
| 12 #include "ppapi/c/ppb_audio.h" | 12 #include "ppapi/c/ppb_audio.h" |
| 13 #include "ppapi/c/ppb_audio_config.h" | 13 #include "ppapi/c/ppb_audio_config.h" |
| 14 #include "ppapi/c/ppb_file_system.h" | 14 #include "ppapi/c/ppb_file_system.h" |
| 15 #include "ppapi/c/ppb_graphics_3d.h" | 15 #include "ppapi/c/ppb_graphics_3d.h" |
| 16 #include "ppapi/c/ppb_image_data.h" | 16 #include "ppapi/c/ppb_image_data.h" |
| 17 #include "ppapi/c/ppb_input_event.h" | 17 #include "ppapi/c/ppb_input_event.h" |
| 18 #include "ppapi/c/ppb_websocket.h" | 18 #include "ppapi/c/ppb_websocket.h" |
| 19 #include "ppapi/c/dev/pp_video_dev.h" | 19 #include "ppapi/c/dev/pp_video_dev.h" |
| 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 21 #include "ppapi/c/private/pp_private_font_charset.h" | 21 #include "ppapi/c/private/pp_private_font_charset.h" |
| 22 #include "ppapi/c/private/ppb_network_monitor_private.h" | 22 #include "ppapi/c/private/ppb_network_monitor_private.h" |
| 23 #include "ppapi/shared_impl/api_id.h" | 23 #include "ppapi/shared_impl/api_id.h" |
| 24 | 24 |
| 25 struct PP_Flash_Menu; | 25 struct PP_Flash_Menu; |
| 26 struct PP_FontDescription_Dev; | 26 struct PP_FontDescription_Dev; |
| 27 struct PP_BrowserFont_Trusted_Description; | 27 struct PP_BrowserFont_Trusted_Description; |
| 28 struct PP_NetAddress_IPv4_Dev; | |
| 29 struct PP_NetAddress_IPv6_Dev; | |
| 28 struct PP_Size; | 30 struct PP_Size; |
| 29 | 31 |
| 30 namespace ppapi { | 32 namespace ppapi { |
| 31 | 33 |
| 32 struct PPB_FileRef_CreateInfo; | 34 struct PPB_FileRef_CreateInfo; |
| 33 struct URLRequestInfoData; | 35 struct URLRequestInfoData; |
| 34 struct URLResponseInfoData; | 36 struct URLResponseInfoData; |
| 35 | 37 |
| 36 namespace thunk { | 38 namespace thunk { |
| 37 | 39 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 const int32_t* attrib_list) = 0; | 138 const int32_t* attrib_list) = 0; |
| 137 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; | 139 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; |
| 138 virtual PP_Resource CreateImageData(PP_Instance instance, | 140 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 139 PP_ImageDataFormat format, | 141 PP_ImageDataFormat format, |
| 140 const PP_Size* size, | 142 const PP_Size* size, |
| 141 PP_Bool init_to_zero) = 0; | 143 PP_Bool init_to_zero) = 0; |
| 142 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, | 144 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, |
| 143 PP_ImageDataFormat format, | 145 PP_ImageDataFormat format, |
| 144 const PP_Size* size, | 146 const PP_Size* size, |
| 145 PP_Bool init_to_zero) = 0; | 147 PP_Bool init_to_zero) = 0; |
| 148 virtual PP_Resource CreateNetAddressFromIPv4Address( | |
|
bbudge
2013/06/06 19:01:10
Could we use method overloading to shorten these n
yzshen1
2013/06/06 20:57:15
I think our style guide prefer this way.
"""
If y
| |
| 149 PP_Instance instance, | |
| 150 const PP_NetAddress_IPv4_Dev* ipv4_addr) = 0; | |
| 151 virtual PP_Resource CreateNetAddressFromIPv6Address( | |
| 152 PP_Instance instance, | |
| 153 const PP_NetAddress_IPv6_Dev* ipv6_addr) = 0; | |
| 146 virtual PP_Resource CreateNetworkMonitor( | 154 virtual PP_Resource CreateNetworkMonitor( |
| 147 PP_Instance instance, | 155 PP_Instance instance, |
| 148 PPB_NetworkMonitor_Callback callback, | 156 PPB_NetworkMonitor_Callback callback, |
| 149 void* user_data) = 0; | 157 void* user_data) = 0; |
| 150 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; | 158 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; |
| 151 virtual PP_Resource CreateTCPServerSocketPrivate(PP_Instance instance) = 0; | 159 virtual PP_Resource CreateTCPServerSocketPrivate(PP_Instance instance) = 0; |
| 152 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instace) = 0; | 160 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instace) = 0; |
| 153 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instace) = 0; | 161 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instace) = 0; |
| 154 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; | 162 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; |
| 155 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; | 163 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 180 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; | 188 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; |
| 181 #endif // !defined(OS_NACL) | 189 #endif // !defined(OS_NACL) |
| 182 | 190 |
| 183 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 191 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 184 }; | 192 }; |
| 185 | 193 |
| 186 } // namespace thunk | 194 } // namespace thunk |
| 187 } // namespace ppapi | 195 } // namespace ppapi |
| 188 | 196 |
| 189 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 197 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |