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

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

Issue 8930010: Implement in-process PPB_VarArrayBuffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some pre-review cleanup. 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
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 14 matching lines...) Expand all
25 #include "ppapi/c/dev/ppb_font_dev.h" 25 #include "ppapi/c/dev/ppb_font_dev.h"
26 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 26 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
27 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" 27 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
28 #include "ppapi/c/dev/ppb_layer_compositor_dev.h" 28 #include "ppapi/c/dev/ppb_layer_compositor_dev.h"
29 #include "ppapi/c/dev/ppb_memory_dev.h" 29 #include "ppapi/c/dev/ppb_memory_dev.h"
30 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 30 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
31 #include "ppapi/c/dev/ppb_testing_dev.h" 31 #include "ppapi/c/dev/ppb_testing_dev.h"
32 #include "ppapi/c/dev/ppb_text_input_dev.h" 32 #include "ppapi/c/dev/ppb_text_input_dev.h"
33 #include "ppapi/c/dev/ppb_transport_dev.h" 33 #include "ppapi/c/dev/ppb_transport_dev.h"
34 #include "ppapi/c/dev/ppb_url_util_dev.h" 34 #include "ppapi/c/dev/ppb_url_util_dev.h"
35 #include "ppapi/c/dev/ppb_var_array_buffer_dev.h"
35 #include "ppapi/c/dev/ppb_var_deprecated.h" 36 #include "ppapi/c/dev/ppb_var_deprecated.h"
36 #include "ppapi/c/dev/ppb_video_capture_dev.h" 37 #include "ppapi/c/dev/ppb_video_capture_dev.h"
37 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 38 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
38 #include "ppapi/c/dev/ppb_video_layer_dev.h" 39 #include "ppapi/c/dev/ppb_video_layer_dev.h"
39 #include "ppapi/c/dev/ppb_widget_dev.h" 40 #include "ppapi/c/dev/ppb_widget_dev.h"
40 #include "ppapi/c/dev/ppb_zoom_dev.h" 41 #include "ppapi/c/dev/ppb_zoom_dev.h"
41 #include "ppapi/c/pp_module.h" 42 #include "ppapi/c/pp_module.h"
42 #include "ppapi/c/pp_resource.h" 43 #include "ppapi/c/pp_resource.h"
43 #include "ppapi/c/pp_var.h" 44 #include "ppapi/c/pp_var.h"
44 #include "ppapi/c/ppb_audio.h" 45 #include "ppapi/c/ppb_audio.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 320 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
320 return PPB_UMA_Private_Impl::GetInterface(); 321 return PPB_UMA_Private_Impl::GetInterface();
321 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) 322 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
322 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk(); 323 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_Thunk();
323 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 324 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
324 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 325 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
325 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 326 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
326 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 327 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
327 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) 328 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
328 return ::ppapi::PPB_Var_Shared::GetVarInterface(); 329 return ::ppapi::PPB_Var_Shared::GetVarInterface();
330 if (strcmp(name, PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE) == 0)
331 return ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface();
329 332
330 #ifdef ENABLE_FLAPPER_HACKS 333 #ifdef ENABLE_FLAPPER_HACKS
331 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0) 334 if (strcmp(name, PPB_FLASH_NETCONNECTOR_INTERFACE) == 0)
332 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk(); 335 return ::ppapi::thunk::GetPPB_Flash_NetConnector_Thunk();
333 #endif // ENABLE_FLAPPER_HACKS 336 #endif // ENABLE_FLAPPER_HACKS
334 337
335 // Only support the testing interface when the command line switch is 338 // Only support the testing interface when the command line switch is
336 // specified. This allows us to prevent people from (ab)using this interface 339 // specified. This allows us to prevent people from (ab)using this interface
337 // in production code. 340 // in production code.
338 if (CommandLine::ForCurrentProcess()->HasSwitch( 341 if (CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 577 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
575 if (retval != 0) { 578 if (retval != 0) {
576 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 579 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
577 return false; 580 return false;
578 } 581 }
579 return true; 582 return true;
580 } 583 }
581 584
582 } // namespace ppapi 585 } // namespace ppapi
583 } // namespace webkit 586 } // namespace webkit
OLDNEW
« ppapi/shared_impl/test_globals.h ('K') | « webkit/plugins/ppapi/npobject_var.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698