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/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/child/child_process.h" | 21 #include "content/child/child_process.h" |
22 #include "content/child/child_thread.h" | 22 #include "content/child/child_thread.h" |
23 #include "content/child/fileapi/file_system_dispatcher.h" | 23 #include "content/child/fileapi/file_system_dispatcher.h" |
24 #include "content/child/npapi/webplugin.h" | 24 #include "content/child/npapi/webplugin.h" |
25 #include "content/child/quota_dispatcher.h" | 25 #include "content/child/quota_dispatcher.h" |
26 #include "content/common/child_process_messages.h" | 26 #include "content/common/child_process_messages.h" |
27 #include "content/common/fileapi/file_system_messages.h" | 27 #include "content/common/fileapi/file_system_messages.h" |
28 #include "content/common/gpu/client/context_provider_command_buffer.h" | 28 #include "content/common/gpu/client/context_provider_command_buffer.h" |
29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
30 #include "content/common/pepper_messages.h" | 30 #include "content/common/pepper_messages.h" |
31 #include "content/common/pepper_plugin_registry.h" | |
32 #include "content/common/sandbox_util.h" | 31 #include "content/common/sandbox_util.h" |
33 #include "content/common/view_messages.h" | 32 #include "content/common/view_messages.h" |
34 #include "content/public/common/content_switches.h" | 33 #include "content/public/common/content_switches.h" |
35 #include "content/public/common/context_menu_params.h" | 34 #include "content/public/common/context_menu_params.h" |
36 #include "content/public/common/media_stream_request.h" | 35 #include "content/public/common/media_stream_request.h" |
37 #include "content/public/common/webplugininfo.h" | 36 #include "content/public/common/webplugininfo.h" |
38 #include "content/public/renderer/content_renderer_client.h" | 37 #include "content/public/renderer/content_renderer_client.h" |
39 #include "content/public/renderer/renderer_restrict_dispatch_group.h" | 38 #include "content/public/renderer/renderer_restrict_dispatch_group.h" |
40 #include "content/renderer/gamepad_shared_memory_reader.h" | 39 #include "content/renderer/gamepad_shared_memory_reader.h" |
41 #include "content/renderer/media/media_stream_dispatcher.h" | 40 #include "content/renderer/media/media_stream_dispatcher.h" |
42 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" | 41 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" |
43 #include "content/renderer/p2p/socket_dispatcher.h" | 42 #include "content/renderer/p2p/socket_dispatcher.h" |
44 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 43 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
45 #include "content/renderer/pepper/pepper_broker_impl.h" | 44 #include "content/renderer/pepper/pepper_broker_impl.h" |
46 #include "content/renderer/pepper/pepper_browser_connection.h" | 45 #include "content/renderer/pepper/pepper_browser_connection.h" |
47 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" | 46 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" |
48 #include "content/renderer/pepper/pepper_file_system_host.h" | 47 #include "content/renderer/pepper/pepper_file_system_host.h" |
49 #include "content/renderer/pepper/pepper_graphics_2d_host.h" | 48 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
50 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" | 49 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" |
51 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 50 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
52 #include "content/renderer/pepper/pepper_in_process_router.h" | 51 #include "content/renderer/pepper/pepper_in_process_router.h" |
53 #include "content/renderer/pepper/pepper_platform_audio_input_impl.h" | 52 #include "content/renderer/pepper/pepper_platform_audio_input_impl.h" |
54 #include "content/renderer/pepper/pepper_platform_audio_output_impl.h" | 53 #include "content/renderer/pepper/pepper_platform_audio_output_impl.h" |
55 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" | 54 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" |
56 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" | 55 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" |
57 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" | 56 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" |
| 57 #include "content/renderer/pepper/pepper_plugin_registry.h" |
58 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" | 58 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
59 #include "content/renderer/pepper/pepper_url_loader_host.h" | 59 #include "content/renderer/pepper/pepper_url_loader_host.h" |
60 #include "content/renderer/pepper/plugin_module.h" | 60 #include "content/renderer/pepper/plugin_module.h" |
61 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h" | 61 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h" |
62 #include "content/renderer/pepper/ppapi_webplugin_impl.h" | 62 #include "content/renderer/pepper/ppapi_webplugin_impl.h" |
63 #include "content/renderer/pepper/ppb_tcp_server_socket_private_impl.h" | 63 #include "content/renderer/pepper/ppb_tcp_server_socket_private_impl.h" |
64 #include "content/renderer/pepper/ppb_tcp_socket_private_impl.h" | 64 #include "content/renderer/pepper/ppb_tcp_socket_private_impl.h" |
65 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 65 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
66 #include "content/renderer/pepper/resource_helper.h" | 66 #include "content/renderer/pepper/resource_helper.h" |
67 #include "content/renderer/pepper/url_response_info_util.h" | 67 #include "content/renderer/pepper/url_response_info_util.h" |
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 should_close_source); | 1691 should_close_source); |
1692 } | 1692 } |
1693 | 1693 |
1694 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { | 1694 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { |
1695 RendererPpapiHostImpl* host = | 1695 RendererPpapiHostImpl* host = |
1696 RendererPpapiHostImpl::GetForPPInstance(instance); | 1696 RendererPpapiHostImpl::GetForPPInstance(instance); |
1697 return host && host->IsRunningInProcess(); | 1697 return host && host->IsRunningInProcess(); |
1698 } | 1698 } |
1699 | 1699 |
1700 } // namespace content | 1700 } // namespace content |
OLD | NEW |