OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/ppapi/plugin_module.h" | 5 #include "webkit/plugins/ppapi/plugin_module.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 DCHECK(IsMainThread()); | 225 DCHECK(IsMainThread()); |
226 | 226 |
227 // Allow custom interface factories first stab at the GetInterface call. | 227 // Allow custom interface factories first stab at the GetInterface call. |
228 const void* custom_interface = | 228 const void* custom_interface = |
229 PpapiInterfaceFactoryManager::GetInstance()->GetInterface(name); | 229 PpapiInterfaceFactoryManager::GetInstance()->GetInterface(name); |
230 if (custom_interface) | 230 if (custom_interface) |
231 return custom_interface; | 231 return custom_interface; |
232 | 232 |
233 // Please keep alphabetized by interface macro name with "special" stuff at | 233 // Please keep alphabetized by interface macro name with "special" stuff at |
234 // the bottom. | 234 // the bottom. |
235 if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE) == 0) | 235 if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE_1_0) == 0) |
236 return ::ppapi::thunk::GetPPB_AudioConfig_Thunk(); | 236 return ::ppapi::thunk::GetPPB_AudioConfig_Thunk(); |
237 if (strcmp(name, PPB_AUDIO_INTERFACE) == 0) | 237 if (strcmp(name, PPB_AUDIO_INTERFACE_1_0) == 0) |
238 return ::ppapi::thunk::GetPPB_Audio_Thunk(); | 238 return ::ppapi::thunk::GetPPB_Audio_Thunk(); |
239 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) | 239 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) |
240 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); | 240 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); |
241 if (strcmp(name, PPB_BROKER_TRUSTED_INTERFACE) == 0) | 241 if (strcmp(name, PPB_BROKER_TRUSTED_INTERFACE) == 0) |
242 return ::ppapi::thunk::GetPPB_Broker_Thunk(); | 242 return ::ppapi::thunk::GetPPB_Broker_Thunk(); |
243 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0) | 243 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0) |
244 return ::ppapi::thunk::GetPPB_Buffer_Thunk(); | 244 return ::ppapi::thunk::GetPPB_Buffer_Thunk(); |
245 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) | 245 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) |
246 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); | 246 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); |
247 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0) | 247 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0) |
248 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); | 248 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); |
249 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) | 249 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) |
250 return PPB_Console_Impl::GetInterface(); | 250 return PPB_Console_Impl::GetInterface(); |
251 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 251 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
252 return &core_interface; | 252 return &core_interface; |
253 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) | 253 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) |
254 return PPB_Crypto_Impl::GetInterface(); | 254 return PPB_Crypto_Impl::GetInterface(); |
255 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) | 255 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) |
256 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); | 256 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); |
257 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) | 257 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) |
258 return ::ppapi::thunk::GetPPB_DirectoryReader_Thunk(); | 258 return ::ppapi::thunk::GetPPB_DirectoryReader_Thunk(); |
259 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) | 259 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) |
260 return ::ppapi::thunk::GetPPB_FileChooser_Thunk(); | 260 return ::ppapi::thunk::GetPPB_FileChooser_Thunk(); |
261 if (strcmp(name, PPB_FILEIO_INTERFACE) == 0) | 261 if (strcmp(name, PPB_FILEIO_INTERFACE_1_0) == 0) |
262 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); | 262 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); |
263 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) | 263 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) |
264 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); | 264 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); |
265 if (strcmp(name, PPB_FILEREF_INTERFACE) == 0) | 265 if (strcmp(name, PPB_FILEREF_INTERFACE_1_0) == 0) |
266 return ::ppapi::thunk::GetPPB_FileRef_Thunk(); | 266 return ::ppapi::thunk::GetPPB_FileRef_Thunk(); |
267 if (strcmp(name, PPB_FILESYSTEM_INTERFACE) == 0) | 267 if (strcmp(name, PPB_FILESYSTEM_INTERFACE_1_0) == 0) |
268 return ::ppapi::thunk::GetPPB_FileSystem_Thunk(); | 268 return ::ppapi::thunk::GetPPB_FileSystem_Thunk(); |
269 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) | 269 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) |
270 return ::ppapi::thunk::GetPPB_Find_Thunk(); | 270 return ::ppapi::thunk::GetPPB_Find_Thunk(); |
271 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 271 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
272 return PPB_Flash_Impl::GetInterface(); | 272 return PPB_Flash_Impl::GetInterface(); |
273 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 273 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
274 return PPB_Flash_Clipboard_Impl::GetInterface(); | 274 return PPB_Flash_Clipboard_Impl::GetInterface(); |
275 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 275 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
276 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 276 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
277 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 277 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
278 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 278 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
279 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 279 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
280 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); | 280 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); |
281 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) | 281 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) |
282 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); | 282 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); |
283 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) | 283 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) |
284 return ::ppapi::thunk::GetPPB_Font_Thunk(); | 284 return ::ppapi::thunk::GetPPB_Font_Thunk(); |
285 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) | 285 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) |
286 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); | 286 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); |
287 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) | 287 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_1_0) == 0) |
288 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); | 288 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); |
289 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) | 289 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_1_0) == 0) |
290 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); | 290 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); |
291 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) | 291 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) |
292 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); | 292 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); |
293 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE) == 0) | 293 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE) == 0) |
294 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); | 294 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); |
295 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0) | 295 if (strcmp(name, PPB_INSTANCE_INTERFACE_1_0) == 0) |
296 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk(); | 296 return ::ppapi::thunk::GetPPB_Instance_1_0_Thunk(); |
297 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0) | |
298 return ::ppapi::thunk::GetPPB_Instance_0_5_Thunk(); | |
299 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 297 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) |
300 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); | 298 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); |
301 if (strcmp(name, PPB_KEYBOARD_INPUT_EVENT_INTERFACE) == 0) | 299 if (strcmp(name, PPB_KEYBOARD_INPUT_EVENT_INTERFACE) == 0) |
302 return ::ppapi::thunk::GetPPB_KeyboardInputEvent_Thunk(); | 300 return ::ppapi::thunk::GetPPB_KeyboardInputEvent_Thunk(); |
303 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0) | 301 if (strcmp(name, PPB_MEMORY_DEV_INTERFACE) == 0) |
304 return PPB_Memory_Impl::GetInterface(); | 302 return PPB_Memory_Impl::GetInterface(); |
305 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) | 303 if (strcmp(name, PPB_MESSAGING_INTERFACE_1_0) == 0) |
306 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); | 304 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); |
307 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE) == 0) | 305 if (strcmp(name, PPB_MOUSE_INPUT_EVENT_INTERFACE) == 0) |
308 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk(); | 306 return ::ppapi::thunk::GetPPB_MouseInputEvent_Thunk(); |
309 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 307 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
310 return PPB_Proxy_Impl::GetInterface(); | 308 return PPB_Proxy_Impl::GetInterface(); |
311 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) | 309 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_4) == 0) |
312 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); | 310 return ::ppapi::thunk::GetPPB_Scrollbar_Thunk(); |
313 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) | 311 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE_0_3) == 0) |
314 return PPB_Scrollbar_Impl::Get0_3Interface(); | 312 return PPB_Scrollbar_Impl::Get0_3Interface(); |
315 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) | 313 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) |
316 return PPB_UMA_Private_Impl::GetInterface(); | 314 return PPB_UMA_Private_Impl::GetInterface(); |
317 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) | 315 if (strcmp(name, PPB_URLLOADER_INTERFACE_1_0) == 0) |
318 return ::ppapi::thunk::GetPPB_URLLoader_Thunk(); | 316 return ::ppapi::thunk::GetPPB_URLLoader_Thunk(); |
319 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) | 317 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) |
320 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); | 318 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); |
321 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) | 319 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_1_0) == 0) |
322 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); | 320 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); |
323 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) | 321 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE_1_0) == 0) |
324 return ::ppapi::thunk::GetPPB_URLResponseInfo_Thunk(); | 322 return ::ppapi::thunk::GetPPB_URLResponseInfo_Thunk(); |
325 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) | 323 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) |
326 return PPB_URLUtil_Impl::GetInterface(); | 324 return PPB_URLUtil_Impl::GetInterface(); |
327 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) | 325 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) |
328 return Var::GetDeprecatedInterface(); | 326 return Var::GetDeprecatedInterface(); |
329 if (strcmp(name, PPB_VAR_INTERFACE) == 0) | 327 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) |
330 return Var::GetInterface(); | 328 return Var::GetInterface(); |
331 if (strcmp(name, PPB_VIDEODECODER_DEV_INTERFACE) == 0) | 329 if (strcmp(name, PPB_VIDEODECODER_DEV_INTERFACE) == 0) |
332 return ::ppapi::thunk::GetPPB_VideoDecoder_Thunk(); | 330 return ::ppapi::thunk::GetPPB_VideoDecoder_Thunk(); |
333 if (strcmp(name, PPB_VIDEOLAYER_DEV_INTERFACE) == 0) | 331 if (strcmp(name, PPB_VIDEOLAYER_DEV_INTERFACE) == 0) |
334 return ::ppapi::thunk::GetPPB_VideoLayer_Thunk(); | 332 return ::ppapi::thunk::GetPPB_VideoLayer_Thunk(); |
335 if (strcmp(name, PPB_WHEEL_INPUT_EVENT_INTERFACE) == 0) | 333 if (strcmp(name, PPB_WHEEL_INPUT_EVENT_INTERFACE) == 0) |
336 return ::ppapi::thunk::GetPPB_WheelInputEvent_Thunk(); | 334 return ::ppapi::thunk::GetPPB_WheelInputEvent_Thunk(); |
337 if (strcmp(name, PPB_WIDGET_DEV_INTERFACE) == 0) | 335 if (strcmp(name, PPB_WIDGET_DEV_INTERFACE) == 0) |
338 return ::ppapi::thunk::GetPPB_Widget_Thunk(); | 336 return ::ppapi::thunk::GetPPB_Widget_Thunk(); |
339 if (strcmp(name, PPB_ZOOM_DEV_INTERFACE) == 0) | 337 if (strcmp(name, PPB_ZOOM_DEV_INTERFACE) == 0) |
(...skipping 22 matching lines...) Expand all Loading... |
362 #ifdef ENABLE_FLAPPER_HACKS | 360 #ifdef ENABLE_FLAPPER_HACKS |
363 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0) | 361 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0) |
364 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk(); | 362 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk(); |
365 #endif // ENABLE_FLAPPER_HACKS | 363 #endif // ENABLE_FLAPPER_HACKS |
366 | 364 |
367 #if defined(ENABLE_P2P_APIS) | 365 #if defined(ENABLE_P2P_APIS) |
368 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) | 366 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) |
369 return ::ppapi::thunk::GetPPB_Transport_Thunk(); | 367 return ::ppapi::thunk::GetPPB_Transport_Thunk(); |
370 #endif | 368 #endif |
371 | 369 |
| 370 // Support pre-1.0 version strings of stable interfaces until the changes |
| 371 // have rippled through the system (especially NaCl tree). |
| 372 // TODO(dmichael): Remove this. |
| 373 if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE_0_5) == 0) |
| 374 return ::ppapi::thunk::GetPPB_AudioConfig_Thunk(); |
| 375 if (strcmp(name, PPB_AUDIO_INTERFACE_0_6) == 0) |
| 376 return ::ppapi::thunk::GetPPB_Audio_Thunk(); |
| 377 if (strcmp(name, PPB_FILEIO_INTERFACE_0_5) == 0) |
| 378 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); |
| 379 if (strcmp(name, PPB_FILEREF_INTERFACE_0_9) == 0) |
| 380 return ::ppapi::thunk::GetPPB_FileRef_Thunk(); |
| 381 if (strcmp(name, PPB_FILESYSTEM_INTERFACE_0_7) == 0) |
| 382 return ::ppapi::thunk::GetPPB_FileSystem_Thunk(); |
| 383 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_0_4) == 0) |
| 384 return PPB_Graphics2D_Impl::GetInterface(); |
| 385 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_0_3) == 0) |
| 386 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); |
| 387 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0) |
| 388 return ::ppapi::thunk::GetPPB_Instance_1_0_Thunk(); |
| 389 if (strcmp(name, PPB_MESSAGING_INTERFACE_0_1) == 0) |
| 390 return ::ppapi::thunk::GetPPB_Messaging_Thunk(); |
| 391 if (strcmp(name, PPB_URLLOADER_INTERFACE_0_2) == 0) |
| 392 return ::ppapi::thunk::GetPPB_URLLoader_Thunk(); |
| 393 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE_0_2) == 0) |
| 394 return ::ppapi::thunk::GetPPB_URLRequestInfo_Thunk(); |
| 395 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE_0_1) == 0) |
| 396 return ::ppapi::thunk::GetPPB_URLResponseInfo_Thunk(); |
| 397 if (strcmp(name, PPB_VAR_INTERFACE_0_5) == 0) |
| 398 return Var::GetInterface(); |
| 399 |
| 400 // Support the 0.4 version of PPB_Instance that includes scripting, until it |
| 401 // is no longer being used. |
| 402 // TODO(dmichael): Remove this. |
| 403 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0) |
| 404 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk(); |
| 405 |
372 // Support the dev interfaces for file io, fileref and file system | 406 // Support the dev interfaces for file io, fileref and file system |
373 // until relevant tests and examples are migrated over to non-dev interfaces | 407 // until relevant tests and examples are migrated over to non-dev interfaces |
374 // in order to prevent breaking the tests and examples. | 408 // in order to prevent breaking the tests and examples. |
375 // TODO(sanga): Remove support for these dev interfaces once the relevant | 409 // TODO(sanga): Remove support for these dev interfaces once the relevant |
376 // tests and examples are migrated to non-dev interfaces. | 410 // tests and examples are migrated to non-dev interfaces. |
377 const bool support_dev_file_interfaces = true; | 411 const bool support_dev_file_interfaces = true; |
378 if (support_dev_file_interfaces) { | 412 if (support_dev_file_interfaces) { |
379 if (strcmp(name, "PPB_FileIO(Dev);0.4") == 0) | 413 if (strcmp(name, "PPB_FileIO(Dev);0.4") == 0) |
380 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); | 414 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); |
381 if (strcmp(name, "PPB_FileIOTrusted(Dev);0.3") == 0) | 415 if (strcmp(name, "PPB_FileIOTrusted(Dev);0.3") == 0) |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 649 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
616 if (retval != 0) { | 650 if (retval != 0) { |
617 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 651 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
618 return false; | 652 return false; |
619 } | 653 } |
620 return true; | 654 return true; |
621 } | 655 } |
622 | 656 |
623 } // namespace ppapi | 657 } // namespace ppapi |
624 } // namespace webkit | 658 } // namespace webkit |
OLD | NEW |