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 #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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) | 339 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) |
340 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 340 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
341 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) | 341 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) |
342 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 342 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
343 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) | 343 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) |
344 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); | 344 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); |
345 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 345 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
346 return PPB_Proxy_Impl::GetInterface(); | 346 return PPB_Proxy_Impl::GetInterface(); |
347 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) | 347 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) |
348 return PPB_UMA_Private_Impl::GetInterface(); | 348 return PPB_UMA_Private_Impl::GetInterface(); |
349 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) | |
350 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); | |
351 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) | 349 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) |
352 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); | 350 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); |
353 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) | 351 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) |
354 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); | 352 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); |
355 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) | 353 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) |
356 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); | 354 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); |
357 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) | 355 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) |
358 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); | 356 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); |
359 | 357 |
360 // Only support the testing interface when the command line switch is | 358 // Only support the testing interface when the command line switch is |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 658 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
661 if (retval != 0) { | 659 if (retval != 0) { |
662 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 660 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
663 return false; | 661 return false; |
664 } | 662 } |
665 return true; | 663 return true; |
666 } | 664 } |
667 | 665 |
668 } // namespace ppapi | 666 } // namespace ppapi |
669 } // namespace webkit | 667 } // namespace webkit |
OLD | NEW |