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 "content/renderer/pepper/plugin_module.h" | 5 #include "content/renderer/pepper/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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #include "ppapi/c/dev/ppb_zoom_dev.h" | 60 #include "ppapi/c/dev/ppb_zoom_dev.h" |
61 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" | 61 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" |
62 #include "ppapi/c/pp_module.h" | 62 #include "ppapi/c/pp_module.h" |
63 #include "ppapi/c/pp_resource.h" | 63 #include "ppapi/c/pp_resource.h" |
64 #include "ppapi/c/pp_var.h" | 64 #include "ppapi/c/pp_var.h" |
65 #include "ppapi/c/ppb_audio.h" | 65 #include "ppapi/c/ppb_audio.h" |
66 #include "ppapi/c/ppb_audio_config.h" | 66 #include "ppapi/c/ppb_audio_config.h" |
67 #include "ppapi/c/ppb_console.h" | 67 #include "ppapi/c/ppb_console.h" |
68 #include "ppapi/c/ppb_core.h" | 68 #include "ppapi/c/ppb_core.h" |
69 #include "ppapi/c/ppb_file_io.h" | 69 #include "ppapi/c/ppb_file_io.h" |
| 70 #include "ppapi/c/ppb_file_mapping.h" |
70 #include "ppapi/c/ppb_file_ref.h" | 71 #include "ppapi/c/ppb_file_ref.h" |
71 #include "ppapi/c/ppb_file_system.h" | 72 #include "ppapi/c/ppb_file_system.h" |
72 #include "ppapi/c/ppb_fullscreen.h" | 73 #include "ppapi/c/ppb_fullscreen.h" |
73 #include "ppapi/c/ppb_graphics_2d.h" | 74 #include "ppapi/c/ppb_graphics_2d.h" |
74 #include "ppapi/c/ppb_graphics_3d.h" | 75 #include "ppapi/c/ppb_graphics_3d.h" |
75 #include "ppapi/c/ppb_host_resolver.h" | 76 #include "ppapi/c/ppb_host_resolver.h" |
76 #include "ppapi/c/ppb_image_data.h" | 77 #include "ppapi/c/ppb_image_data.h" |
77 #include "ppapi/c/ppb_instance.h" | 78 #include "ppapi/c/ppb_instance.h" |
78 #include "ppapi/c/ppb_messaging.h" | 79 #include "ppapi/c/ppb_messaging.h" |
79 #include "ppapi/c/ppb_mouse_cursor.h" | 80 #include "ppapi/c/ppb_mouse_cursor.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 310 |
310 // TODO(brettw) put these in a hash map for better performance. | 311 // TODO(brettw) put these in a hash map for better performance. |
311 #define UNPROXIED_IFACE(iface_str, iface_struct) \ | 312 #define UNPROXIED_IFACE(iface_str, iface_struct) \ |
312 if (strcmp(name, iface_str) == 0) \ | 313 if (strcmp(name, iface_str) == 0) \ |
313 return ppapi::thunk::Get##iface_struct##_Thunk(); | 314 return ppapi::thunk::Get##iface_struct##_Thunk(); |
314 #define PROXIED_IFACE(iface_str, iface_struct) \ | 315 #define PROXIED_IFACE(iface_str, iface_struct) \ |
315 UNPROXIED_IFACE(iface_str, iface_struct) | 316 UNPROXIED_IFACE(iface_str, iface_struct) |
316 | 317 |
317 #include "ppapi/thunk/interfaces_ppb_public_stable.h" | 318 #include "ppapi/thunk/interfaces_ppb_public_stable.h" |
318 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | 319 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
| 320 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" |
319 #include "ppapi/thunk/interfaces_ppb_private.h" | 321 #include "ppapi/thunk/interfaces_ppb_private.h" |
320 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" | 322 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" |
321 #include "ppapi/thunk/interfaces_ppb_private_flash.h" | 323 #include "ppapi/thunk/interfaces_ppb_private_flash.h" |
322 | 324 |
323 #undef UNPROXIED_API | 325 #undef UNPROXIED_API |
324 #undef PROXIED_IFACE | 326 #undef PROXIED_IFACE |
325 | 327 |
326 #define LEGACY_IFACE(iface_str, function_name) \ | 328 #define LEGACY_IFACE(iface_str, function_name) \ |
327 if (strcmp(name, iface_str) == 0) \ | 329 if (strcmp(name, iface_str) == 0) \ |
328 return function_name; | 330 return function_name; |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 channel_handle, | 738 channel_handle, |
737 peer_pid, | 739 peer_pid, |
738 plugin_child_id, | 740 plugin_child_id, |
739 false)) // is_external = false | 741 false)) // is_external = false |
740 return scoped_refptr<PluginModule>(); | 742 return scoped_refptr<PluginModule>(); |
741 | 743 |
742 return module; | 744 return module; |
743 } | 745 } |
744 | 746 |
745 } // namespace content | 747 } // namespace content |
OLD | NEW |