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/renderer_ppapi_host_impl.h" | 5 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "content/common/sandbox_util.h" | 10 #include "content/common/sandbox_util.h" |
11 #include "content/renderer/pepper/pepper_graphics_2d_host.h" | 11 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
12 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 12 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
13 #include "content/renderer/pepper/pepper_in_process_router.h" | 13 #include "content/renderer/pepper/pepper_in_process_router.h" |
14 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 14 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
15 #include "content/renderer/render_view_impl.h" | 15 #include "content/renderer/render_view_impl.h" |
16 #include "content/renderer/render_widget_fullscreen_pepper.h" | 16 #include "content/renderer/render_widget_fullscreen_pepper.h" |
17 #include "ppapi/host/ppapi_host.h" | 17 #include "ppapi/host/ppapi_host.h" |
18 #include "ppapi/proxy/host_dispatcher.h" | 18 #include "ppapi/proxy/host_dispatcher.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 19 #include "third_party/WebKit/public/platform/WebRect.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
23 #include "ui/gfx/point.h" | 23 #include "ui/gfx/point.h" |
24 #include "webkit/plugins/ppapi/fullscreen_container.h" | 24 #include "webkit/plugins/ppapi/fullscreen_container.h" |
25 #include "webkit/plugins/ppapi/host_globals.h" | 25 #include "webkit/plugins/ppapi/host_globals.h" |
26 #include "webkit/plugins/ppapi/plugin_delegate.h" | 26 #include "webkit/plugins/ppapi/plugin_delegate.h" |
27 #include "webkit/plugins/ppapi/plugin_module.h" | 27 #include "webkit/plugins/ppapi/plugin_module.h" |
28 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 28 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
29 | 29 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 PP_Instance pp_instance) const { | 275 PP_Instance pp_instance) const { |
276 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); | 276 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); |
277 if (!instance) | 277 if (!instance) |
278 return NULL; | 278 return NULL; |
279 if (!instance->IsValidInstanceOf(module_)) | 279 if (!instance->IsValidInstanceOf(module_)) |
280 return NULL; | 280 return NULL; |
281 return instance; | 281 return instance; |
282 } | 282 } |
283 | 283 |
284 } // namespace content | 284 } // namespace content |
OLD | NEW |