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> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/files/file_util_proxy.h" | 16 #include "base/files/file_util_proxy.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
19 #include "base/sync_socket.h" | 19 #include "base/sync_socket.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "content/child/child_process.h" | 21 #include "content/child/child_process.h" |
22 #include "content/child/child_thread.h" | 22 #include "content/child/child_thread.h" |
23 #include "content/child/fileapi/file_system_dispatcher.h" | 23 #include "content/child/fileapi/file_system_dispatcher.h" |
| 24 #include "content/child/npapi/webplugin.h" |
24 #include "content/child/quota_dispatcher.h" | 25 #include "content/child/quota_dispatcher.h" |
25 #include "content/common/child_process_messages.h" | 26 #include "content/common/child_process_messages.h" |
26 #include "content/common/fileapi/file_system_messages.h" | 27 #include "content/common/fileapi/file_system_messages.h" |
27 #include "content/common/gpu/client/context_provider_command_buffer.h" | 28 #include "content/common/gpu/client/context_provider_command_buffer.h" |
28 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
29 #include "content/common/pepper_messages.h" | 30 #include "content/common/pepper_messages.h" |
30 #include "content/common/pepper_plugin_registry.h" | 31 #include "content/common/pepper_plugin_registry.h" |
31 #include "content/common/sandbox_util.h" | 32 #include "content/common/sandbox_util.h" |
32 #include "content/common/view_messages.h" | 33 #include "content/common/view_messages.h" |
33 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "third_party/WebKit/public/web/WebCursorInfo.h" | 88 #include "third_party/WebKit/public/web/WebCursorInfo.h" |
88 #include "third_party/WebKit/public/web/WebDocument.h" | 89 #include "third_party/WebKit/public/web/WebDocument.h" |
89 #include "third_party/WebKit/public/web/WebElement.h" | 90 #include "third_party/WebKit/public/web/WebElement.h" |
90 #include "third_party/WebKit/public/web/WebFrame.h" | 91 #include "third_party/WebKit/public/web/WebFrame.h" |
91 #include "third_party/WebKit/public/web/WebInputEvent.h" | 92 #include "third_party/WebKit/public/web/WebInputEvent.h" |
92 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 93 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
93 #include "third_party/WebKit/public/web/WebScreenInfo.h" | 94 #include "third_party/WebKit/public/web/WebScreenInfo.h" |
94 #include "third_party/WebKit/public/web/WebView.h" | 95 #include "third_party/WebKit/public/web/WebView.h" |
95 #include "ui/gfx/size.h" | 96 #include "ui/gfx/size.h" |
96 #include "url/gurl.h" | 97 #include "url/gurl.h" |
97 #include "webkit/plugins/npapi/webplugin.h" | |
98 #include "webkit/plugins/ppapi/plugin_module.h" | 98 #include "webkit/plugins/ppapi/plugin_module.h" |
99 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 99 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
100 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" | 100 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" |
101 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 101 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
102 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 102 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
103 #include "webkit/plugins/ppapi/resource_helper.h" | 103 #include "webkit/plugins/ppapi/resource_helper.h" |
104 #include "webkit/plugins/webplugininfo.h" | 104 #include "webkit/plugins/webplugininfo.h" |
105 | 105 |
106 using WebKit::WebView; | 106 using WebKit::WebView; |
107 using WebKit::WebFrame; | 107 using WebKit::WebFrame; |
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 should_close_source); | 1703 should_close_source); |
1704 } | 1704 } |
1705 | 1705 |
1706 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { | 1706 bool PepperPluginDelegateImpl::IsRunningInProcess(PP_Instance instance) const { |
1707 RendererPpapiHostImpl* host = | 1707 RendererPpapiHostImpl* host = |
1708 RendererPpapiHostImpl::GetForPPInstance(instance); | 1708 RendererPpapiHostImpl::GetForPPInstance(instance); |
1709 return host && host->IsRunningInProcess(); | 1709 return host && host->IsRunningInProcess(); |
1710 } | 1710 } |
1711 | 1711 |
1712 } // namespace content | 1712 } // namespace content |
OLD | NEW |