| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) | 318 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) |
| 319 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 319 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
| 320 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) | 320 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) |
| 321 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); | 321 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); |
| 322 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) | 322 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) |
| 323 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); | 323 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); |
| 324 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 324 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
| 325 return PPB_Proxy_Impl::GetInterface(); | 325 return PPB_Proxy_Impl::GetInterface(); |
| 326 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) | 326 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) |
| 327 return PPB_UMA_Private_Impl::GetInterface(); | 327 return PPB_UMA_Private_Impl::GetInterface(); |
| 328 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) | |
| 329 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); | |
| 330 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) | 328 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) |
| 331 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); | 329 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); |
| 332 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) | 330 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) |
| 333 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); | 331 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); |
| 334 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) | 332 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) |
| 335 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); | 333 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); |
| 336 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) | 334 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) |
| 337 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); | 335 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); |
| 338 | 336 |
| 339 // Only support the testing interface when the command line switch is | 337 // Only support the testing interface when the command line switch is |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 613 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 616 if (retval != 0) { | 614 if (retval != 0) { |
| 617 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 615 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 618 return false; | 616 return false; |
| 619 } | 617 } |
| 620 return true; | 618 return true; |
| 621 } | 619 } |
| 622 | 620 |
| 623 } // namespace ppapi | 621 } // namespace ppapi |
| 624 } // namespace webkit | 622 } // namespace webkit |
| OLD | NEW |