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