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/common/child_process.h" | 21 #include "content/common/child_process.h" |
22 #include "content/common/child_process_messages.h" | 22 #include "content/common/child_process_messages.h" |
23 #include "content/common/child_thread.h" | 23 #include "content/common/child_thread.h" |
24 #include "content/common/fileapi/file_system_dispatcher.h" | 24 #include "content/common/fileapi/file_system_dispatcher.h" |
25 #include "content/common/fileapi/file_system_messages.h" | 25 #include "content/common/fileapi/file_system_messages.h" |
26 #include "content/common/gpu/client/context_provider_command_buffer.h" | 26 #include "content/common/gpu/client/context_provider_command_buffer.h" |
27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
28 #include "content/common/pepper_messages.h" | 28 #include "content/common/pepper_messages.h" |
29 #include "content/common/pepper_plugin_registry.h" | 29 #include "content/common/pepper_plugin_registry.h" |
30 #include "content/common/quota_dispatcher.h" | 30 #include "content/common/quota_dispatcher.h" |
| 31 #include "content/common/sandbox_util.h" |
31 #include "content/common/view_messages.h" | 32 #include "content/common/view_messages.h" |
32 #include "content/public/common/content_switches.h" | 33 #include "content/public/common/content_switches.h" |
33 #include "content/public/common/context_menu_params.h" | 34 #include "content/public/common/context_menu_params.h" |
34 #include "content/public/common/media_stream_request.h" | 35 #include "content/public/common/media_stream_request.h" |
35 #include "content/public/common/referrer.h" | 36 #include "content/public/common/referrer.h" |
36 #include "content/public/common/sandbox_init.h" | |
37 #include "content/public/renderer/content_renderer_client.h" | 37 #include "content/public/renderer/content_renderer_client.h" |
38 #include "content/public/renderer/renderer_restrict_dispatch_group.h" | 38 #include "content/public/renderer/renderer_restrict_dispatch_group.h" |
39 #include "content/renderer/gamepad_shared_memory_reader.h" | 39 #include "content/renderer/gamepad_shared_memory_reader.h" |
40 #include "content/renderer/media/media_stream_dispatcher.h" | 40 #include "content/renderer/media/media_stream_dispatcher.h" |
41 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" | 41 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" |
42 #include "content/renderer/p2p/socket_dispatcher.h" | 42 #include "content/renderer/p2p/socket_dispatcher.h" |
43 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 43 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
44 #include "content/renderer/pepper/pepper_broker_impl.h" | 44 #include "content/renderer/pepper/pepper_broker_impl.h" |
45 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" | 45 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" |
46 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" | 46 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 return container->mouse_lock_dispatcher(); | 1606 return container->mouse_lock_dispatcher(); |
1607 } else { | 1607 } else { |
1608 return render_view_->mouse_lock_dispatcher(); | 1608 return render_view_->mouse_lock_dispatcher(); |
1609 } | 1609 } |
1610 } | 1610 } |
1611 | 1611 |
1612 IPC::PlatformFileForTransit PepperPluginDelegateImpl::ShareHandleWithRemote( | 1612 IPC::PlatformFileForTransit PepperPluginDelegateImpl::ShareHandleWithRemote( |
1613 base::PlatformFile handle, | 1613 base::PlatformFile handle, |
1614 base::ProcessId target_process_id, | 1614 base::ProcessId target_process_id, |
1615 bool should_close_source) const { | 1615 bool should_close_source) const { |
1616 return content::BrokerGetFileHandleForProcess( | 1616 return BrokerGetFileHandleForProcess( |
1617 handle, | 1617 handle, |
1618 target_process_id, | 1618 target_process_id, |
1619 should_close_source); | 1619 should_close_source); |
1620 } | 1620 } |
1621 | 1621 |
1622 } // namespace content | 1622 } // namespace content |
OLD | NEW |