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 "chrome/renderer/pepper_plugin_delegate_impl.h" | 5 #include "chrome/renderer/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "app/surface/transport_dib.h" | 10 #include "app/surface/transport_dib.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/string_split.h" | 15 #include "base/string_split.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_file_messages.h" | |
19 #include "chrome/common/pepper_messages.h" | |
20 #include "chrome/common/pepper_plugin_registry.h" | 18 #include "chrome/common/pepper_plugin_registry.h" |
21 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
22 #include "chrome/common/render_messages_params.h" | 20 #include "chrome/common/render_messages_params.h" |
23 #include "chrome/renderer/audio_message_filter.h" | 21 #include "chrome/renderer/audio_message_filter.h" |
24 #include "chrome/renderer/command_buffer_proxy.h" | 22 #include "chrome/renderer/command_buffer_proxy.h" |
25 #include "chrome/renderer/ggl/ggl.h" | 23 #include "chrome/renderer/ggl/ggl.h" |
26 #include "chrome/renderer/gpu_channel_host.h" | 24 #include "chrome/renderer/gpu_channel_host.h" |
27 #include "chrome/renderer/pepper_platform_context_3d_impl.h" | 25 #include "chrome/renderer/pepper_platform_context_3d_impl.h" |
28 #include "chrome/renderer/render_thread.h" | 26 #include "chrome/renderer/render_thread.h" |
29 #include "chrome/renderer/render_view.h" | 27 #include "chrome/renderer/render_view.h" |
30 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 28 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
31 #include "chrome/renderer/webplugin_delegate_proxy.h" | 29 #include "chrome/renderer/webplugin_delegate_proxy.h" |
32 #include "content/common/child_process_messages.h" | 30 #include "content/common/child_process_messages.h" |
33 #include "content/common/child_thread.h" | 31 #include "content/common/child_thread.h" |
34 #include "content/common/file_system/file_system_dispatcher.h" | 32 #include "content/common/file_system/file_system_dispatcher.h" |
| 33 #include "content/common/pepper_file_messages.h" |
| 34 #include "content/common/pepper_messages.h" |
35 #include "grit/locale_settings.h" | 35 #include "grit/locale_settings.h" |
36 #include "ipc/ipc_channel_handle.h" | 36 #include "ipc/ipc_channel_handle.h" |
37 #include "ppapi/c/dev/pp_video_dev.h" | 37 #include "ppapi/c/dev/pp_video_dev.h" |
38 #include "ppapi/c/pp_errors.h" | 38 #include "ppapi/c/pp_errors.h" |
39 #include "ppapi/c/private/ppb_flash.h" | 39 #include "ppapi/c/private/ppb_flash.h" |
40 #include "ppapi/c/private/ppb_flash_net_connector.h" | 40 #include "ppapi/c/private/ppb_flash_net_connector.h" |
41 #include "ppapi/proxy/host_dispatcher.h" | 41 #include "ppapi/proxy/host_dispatcher.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 } | 950 } |
951 | 951 |
952 void PepperPluginDelegateImpl::HasUnsupportedFeature() { | 952 void PepperPluginDelegateImpl::HasUnsupportedFeature() { |
953 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( | 953 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( |
954 render_view_->routing_id())); | 954 render_view_->routing_id())); |
955 } | 955 } |
956 | 956 |
957 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { | 957 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { |
958 return render_view_->p2p_socket_dispatcher(); | 958 return render_view_->p2p_socket_dispatcher(); |
959 } | 959 } |
OLD | NEW |