| 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 | 8 |
| 9 #include "app/surface/transport_dib.h" | 9 #include "app/surface/transport_dib.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/renderer/pepper_platform_context_3d_impl.h" | 29 #include "chrome/renderer/pepper_platform_context_3d_impl.h" |
| 30 #include "chrome/renderer/render_thread.h" | 30 #include "chrome/renderer/render_thread.h" |
| 31 #include "chrome/renderer/render_view.h" | 31 #include "chrome/renderer/render_view.h" |
| 32 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 32 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
| 33 #include "chrome/renderer/webplugin_delegate_proxy.h" | 33 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 34 #include "grit/locale_settings.h" | 34 #include "grit/locale_settings.h" |
| 35 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
| 36 #include "ppapi/c/dev/pp_video_dev.h" | 36 #include "ppapi/c/dev/pp_video_dev.h" |
| 37 #include "ppapi/c/pp_errors.h" | 37 #include "ppapi/c/pp_errors.h" |
| 38 #include "ppapi/c/private/ppb_flash.h" | 38 #include "ppapi/c/private/ppb_flash.h" |
| 39 #include "ppapi/c/private/ppb_flash_net_connector.h" |
| 39 #include "ppapi/proxy/host_dispatcher.h" | 40 #include "ppapi/proxy/host_dispatcher.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 44 #include "ui/base/l10n/l10n_util.h" | 45 #include "ui/base/l10n/l10n_util.h" |
| 45 #include "ui/gfx/size.h" | 46 #include "ui/gfx/size.h" |
| 46 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 47 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 47 #include "webkit/glue/context_menu.h" | 48 #include "webkit/glue/context_menu.h" |
| 48 #include "webkit/plugins/npapi/webplugin.h" | 49 #include "webkit/plugins/npapi/webplugin.h" |
| 49 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" | 50 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
| 50 #include "webkit/plugins/ppapi/plugin_module.h" | 51 #include "webkit/plugins/ppapi/plugin_module.h" |
| 51 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 52 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 52 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 53 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 54 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" |
| 53 | 55 |
| 54 #if defined(OS_MACOSX) | 56 #if defined(OS_MACOSX) |
| 55 #include "chrome/renderer/render_thread.h" | 57 #include "chrome/renderer/render_thread.h" |
| 56 #endif | 58 #endif |
| 57 | 59 |
| 58 #if defined(OS_POSIX) | 60 #if defined(OS_POSIX) |
| 59 #include "ipc/ipc_channel_posix.h" | 61 #include "ipc/ipc_channel_posix.h" |
| 60 #endif | 62 #endif |
| 61 | 63 |
| 62 using WebKit::WebView; | 64 using WebKit::WebView; |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 | 949 |
| 948 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { | 950 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { |
| 949 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( | 951 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( |
| 950 render_view_->routing_id(), restrictions)); | 952 render_view_->routing_id(), restrictions)); |
| 951 } | 953 } |
| 952 | 954 |
| 953 void PepperPluginDelegateImpl::HasUnsupportedFeature() { | 955 void PepperPluginDelegateImpl::HasUnsupportedFeature() { |
| 954 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( | 956 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( |
| 955 render_view_->routing_id())); | 957 render_view_->routing_id())); |
| 956 } | 958 } |
| OLD | NEW |