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

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

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/npobject_var.cc ('k') | webkit/plugins/ppapi/plugin_object.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "ppapi/c/trusted/ppb_audio_trusted.h" 78 #include "ppapi/c/trusted/ppb_audio_trusted.h"
79 #include "ppapi/c/trusted/ppb_broker_trusted.h" 79 #include "ppapi/c/trusted/ppb_broker_trusted.h"
80 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 80 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
81 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 81 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
82 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 82 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
83 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" 83 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h"
84 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 84 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
85 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 85 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
86 #include "ppapi/shared_impl/ppb_input_event_shared.h" 86 #include "ppapi/shared_impl/ppb_input_event_shared.h"
87 #include "ppapi/shared_impl/ppb_opengles2_shared.h" 87 #include "ppapi/shared_impl/ppb_opengles2_shared.h"
88 #include "ppapi/shared_impl/ppb_var_impl.h"
88 #include "ppapi/shared_impl/time_conversion.h" 89 #include "ppapi/shared_impl/time_conversion.h"
89 #include "ppapi/thunk/enter.h" 90 #include "ppapi/thunk/enter.h"
90 #include "ppapi/thunk/thunk.h" 91 #include "ppapi/thunk/thunk.h"
91 #include "webkit/plugins/plugin_switches.h" 92 #include "webkit/plugins/plugin_switches.h"
92 #include "webkit/plugins/ppapi/callbacks.h" 93 #include "webkit/plugins/ppapi/callbacks.h"
93 #include "webkit/plugins/ppapi/common.h" 94 #include "webkit/plugins/ppapi/common.h"
94 #include "webkit/plugins/ppapi/host_globals.h" 95 #include "webkit/plugins/ppapi/host_globals.h"
95 #include "webkit/plugins/ppapi/host_resource_tracker.h" 96 #include "webkit/plugins/ppapi/host_resource_tracker.h"
96 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 97 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
97 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 98 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
98 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" 99 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
99 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" 100 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h"
100 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h" 101 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h"
101 #include "webkit/plugins/ppapi/ppb_flash_impl.h" 102 #include "webkit/plugins/ppapi/ppb_flash_impl.h"
102 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" 103 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h"
103 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" 104 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h"
104 #include "webkit/plugins/ppapi/ppb_font_impl.h" 105 #include "webkit/plugins/ppapi/ppb_font_impl.h"
105 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h" 106 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h"
106 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" 107 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h"
107 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" 108 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
108 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" 109 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h"
109 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" 110 #include "webkit/plugins/ppapi/ppb_proxy_impl.h"
110 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" 111 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h"
111 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" 112 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h"
112 #include "webkit/plugins/ppapi/ppb_var_impl.h" 113 #include "webkit/plugins/ppapi/ppb_var_deprecated_impl.h"
113 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" 114 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h"
114 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 115 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
115 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" 116 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h"
116 #include "webkit/plugins/ppapi/webkit_forwarding_impl.h" 117 #include "webkit/plugins/ppapi/webkit_forwarding_impl.h"
117 118
118 using ppapi::InputEventData; 119 using ppapi::InputEventData;
119 using ppapi::PpapiGlobals; 120 using ppapi::PpapiGlobals;
120 using ppapi::TimeTicksToPPTimeTicks; 121 using ppapi::TimeTicksToPPTimeTicks;
121 using ppapi::TimeToPPTime; 122 using ppapi::TimeToPPTime;
122 using ppapi::thunk::EnterResource; 123 using ppapi::thunk::EnterResource;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); 316 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk();
316 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) 317 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0)
317 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); 318 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface();
318 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 319 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
319 return PPB_Proxy_Impl::GetInterface(); 320 return PPB_Proxy_Impl::GetInterface();
320 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 321 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
321 return PPB_UMA_Private_Impl::GetInterface(); 322 return PPB_UMA_Private_Impl::GetInterface();
322 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) 323 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
323 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); 324 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk();
324 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 325 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
325 return PPB_Var_Impl::GetVarDeprecatedInterface(); 326 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
326 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 327 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
327 return PPB_Var_Impl::GetVarInterface(); 328 return ::ppapi::PPB_Var_Impl::GetVarInterface1_0();
329 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
330 return ::ppapi::PPB_Var_Impl::GetVarInterface();
328 331
329 #ifdef ENABLE_FLAPPER_HACKS 332 #ifdef ENABLE_FLAPPER_HACKS
330 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0) 333 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0)
331 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk(); 334 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk();
332 #endif // ENABLE_FLAPPER_HACKS 335 #endif // ENABLE_FLAPPER_HACKS
333 336
334 // Only support the testing interface when the command line switch is 337 // Only support the testing interface when the command line switch is
335 // specified. This allows us to prevent people from (ab)using this interface 338 // specified. This allows us to prevent people from (ab)using this interface
336 // in production code. 339 // in production code.
337 if (CommandLine::ForCurrentProcess()->HasSwitch( 340 if (CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 576 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
574 if (retval != 0) { 577 if (retval != 0) {
575 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 578 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
576 return false; 579 return false;
577 } 580 }
578 return true; 581 return true;
579 } 582 }
580 583
581 } // namespace ppapi 584 } // namespace ppapi
582 } // namespace webkit 585 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/npobject_var.cc ('k') | webkit/plugins/ppapi/plugin_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698