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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" | 54 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" |
55 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" | 55 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" |
56 #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_proxy_channel_delegate_impl.h" | 57 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
58 #include "content/renderer/pepper/pepper_url_loader_host.h" | 58 #include "content/renderer/pepper/pepper_url_loader_host.h" |
59 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 59 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
60 #include "content/renderer/render_thread_impl.h" | 60 #include "content/renderer/render_thread_impl.h" |
61 #include "content/renderer/render_view_impl.h" | 61 #include "content/renderer/render_view_impl.h" |
62 #include "content/renderer/render_widget_fullscreen_pepper.h" | 62 #include "content/renderer/render_widget_fullscreen_pepper.h" |
63 #include "content/renderer/webplugin_delegate_proxy.h" | 63 #include "content/renderer/webplugin_delegate_proxy.h" |
64 #include "googleurl/src/gurl.h" | |
65 #include "ipc/ipc_channel_handle.h" | 64 #include "ipc/ipc_channel_handle.h" |
66 #include "media/base/audio_hardware_config.h" | 65 #include "media/base/audio_hardware_config.h" |
67 #include "media/video/capture/video_capture_proxy.h" | 66 #include "media/video/capture/video_capture_proxy.h" |
68 #include "ppapi/c/dev/pp_video_dev.h" | 67 #include "ppapi/c/dev/pp_video_dev.h" |
69 #include "ppapi/c/pp_errors.h" | 68 #include "ppapi/c/pp_errors.h" |
70 #include "ppapi/c/private/ppb_flash.h" | 69 #include "ppapi/c/private/ppb_flash.h" |
71 #include "ppapi/host/ppapi_host.h" | 70 #include "ppapi/host/ppapi_host.h" |
72 #include "ppapi/proxy/host_dispatcher.h" | 71 #include "ppapi/proxy/host_dispatcher.h" |
73 #include "ppapi/proxy/ppapi_messages.h" | 72 #include "ppapi/proxy/ppapi_messages.h" |
74 #include "ppapi/proxy/url_loader_resource.h" | 73 #include "ppapi/proxy/url_loader_resource.h" |
(...skipping 11 matching lines...) Expand all Loading... |
86 #include "ppapi/thunk/ppb_tcp_server_socket_private_api.h" | 85 #include "ppapi/thunk/ppb_tcp_server_socket_private_api.h" |
87 #include "third_party/WebKit/public/web/WebCursorInfo.h" | 86 #include "third_party/WebKit/public/web/WebCursorInfo.h" |
88 #include "third_party/WebKit/public/web/WebDocument.h" | 87 #include "third_party/WebKit/public/web/WebDocument.h" |
89 #include "third_party/WebKit/public/web/WebElement.h" | 88 #include "third_party/WebKit/public/web/WebElement.h" |
90 #include "third_party/WebKit/public/web/WebFrame.h" | 89 #include "third_party/WebKit/public/web/WebFrame.h" |
91 #include "third_party/WebKit/public/web/WebInputEvent.h" | 90 #include "third_party/WebKit/public/web/WebInputEvent.h" |
92 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 91 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
93 #include "third_party/WebKit/public/web/WebScreenInfo.h" | 92 #include "third_party/WebKit/public/web/WebScreenInfo.h" |
94 #include "third_party/WebKit/public/web/WebView.h" | 93 #include "third_party/WebKit/public/web/WebView.h" |
95 #include "ui/gfx/size.h" | 94 #include "ui/gfx/size.h" |
| 95 #include "url/gurl.h" |
96 #include "webkit/plugins/npapi/webplugin.h" | 96 #include "webkit/plugins/npapi/webplugin.h" |
97 #include "webkit/plugins/ppapi/plugin_module.h" | 97 #include "webkit/plugins/ppapi/plugin_module.h" |
98 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 98 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
99 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" | 99 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" |
100 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 100 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
101 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 101 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
102 #include "webkit/plugins/ppapi/resource_helper.h" | 102 #include "webkit/plugins/ppapi/resource_helper.h" |
103 #include "webkit/plugins/ppapi/url_response_info_util.h" | 103 #include "webkit/plugins/ppapi/url_response_info_util.h" |
104 #include "webkit/plugins/webplugininfo.h" | 104 #include "webkit/plugins/webplugininfo.h" |
105 | 105 |
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 should_close_source); | 1702 should_close_source); |
1703 } | 1703 } |
1704 | 1704 |
1705 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { | 1705 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { |
1706 RendererPpapiHostImpl* host = | 1706 RendererPpapiHostImpl* host = |
1707 RendererPpapiHostImpl::GetForPPInstance(instance); | 1707 RendererPpapiHostImpl::GetForPPInstance(instance); |
1708 return host && host->IsRunningInProcess(); | 1708 return host && host->IsRunningInProcess(); |
1709 } | 1709 } |
1710 | 1710 |
1711 } // namespace content | 1711 } // namespace content |
OLD | NEW |