Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 14371021: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0) 335 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE) == 0)
336 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); 336 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface();
337 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0) 337 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0) == 0)
338 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); 338 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface();
339 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0) 339 if (strcmp(name, PPB_OPENGLES2_QUERY_INTERFACE) == 0)
340 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface(); 340 return ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface();
341 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 341 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
342 return PPB_Proxy_Impl::GetInterface(); 342 return PPB_Proxy_Impl::GetInterface();
343 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 343 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
344 return PPB_UMA_Private_Impl::GetInterface(); 344 return PPB_UMA_Private_Impl::GetInterface();
345 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
346 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
347 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 345 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
348 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 346 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
349 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 347 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
350 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 348 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
351 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) 349 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
352 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); 350 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1();
353 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0) 351 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0) == 0)
354 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0(); 352 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0();
355 353
356 // Only support the testing interface when the command line switch is 354 // Only support the testing interface when the command line switch is
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 648 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
651 if (retval != 0) { 649 if (retval != 0) {
652 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 650 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
653 return false; 651 return false;
654 } 652 }
655 return true; 653 return true;
656 } 654 }
657 655
658 } // namespace ppapi 656 } // namespace ppapi
659 } // namespace webkit 657 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698