OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_delegate_impl.h" | 5 #include "content/renderer/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string_split.h" | 14 #include "base/string_split.h" |
15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
16 #include "base/task.h" | 16 #include "base/task.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "chrome/common/pepper_plugin_registry.h" | |
19 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
20 #include "content/common/audio_messages.h" | 19 #include "content/common/audio_messages.h" |
21 #include "content/common/child_process_messages.h" | 20 #include "content/common/child_process_messages.h" |
22 #include "content/common/child_thread.h" | 21 #include "content/common/child_thread.h" |
23 #include "content/common/file_system/file_system_dispatcher.h" | 22 #include "content/common/file_system/file_system_dispatcher.h" |
24 #include "content/common/pepper_file_messages.h" | 23 #include "content/common/pepper_file_messages.h" |
| 24 #include "content/common/pepper_plugin_registry.h" |
25 #include "content/common/pepper_messages.h" | 25 #include "content/common/pepper_messages.h" |
26 #include "content/common/view_messages.h" | 26 #include "content/common/view_messages.h" |
27 #include "content/renderer/audio_message_filter.h" | 27 #include "content/renderer/audio_message_filter.h" |
28 #include "content/renderer/command_buffer_proxy.h" | 28 #include "content/renderer/command_buffer_proxy.h" |
29 #include "content/renderer/content_renderer_client.h" | 29 #include "content/renderer/content_renderer_client.h" |
30 #include "content/renderer/renderer_gl_context.h" | 30 #include "content/renderer/renderer_gl_context.h" |
31 #include "content/renderer/gpu_channel_host.h" | 31 #include "content/renderer/gpu_channel_host.h" |
32 #include "content/renderer/p2p/p2p_transport_impl.h" | 32 #include "content/renderer/p2p/p2p_transport_impl.h" |
33 #include "content/renderer/pepper_platform_context_3d_impl.h" | 33 #include "content/renderer/pepper_platform_context_3d_impl.h" |
34 #include "content/renderer/render_thread.h" | 34 #include "content/renderer/render_thread.h" |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 render_view_->routing_id())); | 1176 render_view_->routing_id())); |
1177 } | 1177 } |
1178 | 1178 |
1179 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { | 1179 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { |
1180 return render_view_->p2p_socket_dispatcher(); | 1180 return render_view_->p2p_socket_dispatcher(); |
1181 } | 1181 } |
1182 | 1182 |
1183 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { | 1183 webkit_glue::P2PTransport* PepperPluginDelegateImpl::CreateP2PTransport() { |
1184 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); | 1184 return new P2PTransportImpl(render_view_->p2p_socket_dispatcher()); |
1185 } | 1185 } |
OLD | NEW |