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

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, track src/webkit gypi changes. 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
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698