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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 if (custom_interface) | 306 if (custom_interface) |
307 return custom_interface; | 307 return custom_interface; |
308 | 308 |
309 // TODO(brettw) put these in a hash map for better performance. | 309 // TODO(brettw) put these in a hash map for better performance. |
310 #define UNPROXIED_IFACE(iface_str, iface_struct) \ | 310 #define UNPROXIED_IFACE(iface_str, iface_struct) \ |
311 if (strcmp(name, iface_str) == 0) \ | 311 if (strcmp(name, iface_str) == 0) \ |
312 return ppapi::thunk::Get##iface_struct##_Thunk(); | 312 return ppapi::thunk::Get##iface_struct##_Thunk(); |
313 #define PROXIED_IFACE(iface_str, iface_struct) \ | 313 #define PROXIED_IFACE(iface_str, iface_struct) \ |
314 UNPROXIED_IFACE(iface_str, iface_struct) | 314 UNPROXIED_IFACE(iface_str, iface_struct) |
315 | 315 |
| 316 #include "ppapi/thunk/interfaces_ppb_public_stable.h" |
| 317 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
316 #include "ppapi/thunk/interfaces_ppb_private.h" | 318 #include "ppapi/thunk/interfaces_ppb_private.h" |
| 319 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" |
317 #include "ppapi/thunk/interfaces_ppb_private_flash.h" | 320 #include "ppapi/thunk/interfaces_ppb_private_flash.h" |
318 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" | |
319 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | |
320 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" | |
321 #include "ppapi/thunk/interfaces_ppb_public_stable.h" | |
322 | 321 |
323 #undef UNPROXIED_API | 322 #undef UNPROXIED_API |
324 #undef PROXIED_IFACE | 323 #undef PROXIED_IFACE |
325 | 324 |
326 #define LEGACY_IFACE(iface_str, function_name) \ | 325 #define LEGACY_IFACE(iface_str, function_name) \ |
327 if (strcmp(name, iface_str) == 0) \ | 326 if (strcmp(name, iface_str) == 0) \ |
328 return function_name; | 327 return function_name; |
329 | 328 |
330 #include "ppapi/thunk/interfaces_legacy.h" | 329 #include "ppapi/thunk/interfaces_legacy.h" |
331 | 330 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 channel_handle, | 735 channel_handle, |
737 peer_pid, | 736 peer_pid, |
738 plugin_child_id, | 737 plugin_child_id, |
739 false)) // is_external = false | 738 false)) // is_external = false |
740 return scoped_refptr<PluginModule>(); | 739 return scoped_refptr<PluginModule>(); |
741 | 740 |
742 return module; | 741 return module; |
743 } | 742 } |
744 | 743 |
745 } // namespace content | 744 } // namespace content |
OLD | NEW |