| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) | 334 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) |
| 335 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 335 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
| 336 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) | 336 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) |
| 337 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 337 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
| 338 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) | 338 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) |
| 339 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); | 339 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); |
| 340 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 340 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
| 341 return PPB_Proxy_Impl::GetInterface(); | 341 return PPB_Proxy_Impl::GetInterface(); |
| 342 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) | 342 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) |
| 343 return PPB_UMA_Private_Impl::GetInterface(); | 343 return PPB_UMA_Private_Impl::GetInterface(); |
| 344 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) | |
| 345 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); | |
| 346 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) | 344 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) |
| 347 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); | 345 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); |
| 348 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) | 346 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) |
| 349 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); | 347 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); |
| 350 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) | 348 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) |
| 351 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); | 349 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); |
| 352 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) | 350 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) |
| 353 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); | 351 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); |
| 354 | 352 |
| 355 // Only support the testing interface when the command line switch is | 353 // Only support the testing interface when the command line switch is |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 647 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 650 if (retval != 0) { | 648 if (retval != 0) { |
| 651 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 649 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 652 return false; | 650 return false; |
| 653 } | 651 } |
| 654 return true; | 652 return true; |
| 655 } | 653 } |
| 656 | 654 |
| 657 } // namespace ppapi | 655 } // namespace ppapi |
| 658 } // namespace webkit | 656 } // namespace webkit |
| OLD | NEW |