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/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/renderer/pepper/pepper_graphics_2d_host.h" | 9 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
10 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 10 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
11 #include "content/renderer/pepper/pepper_in_process_router.h" | 11 #include "content/renderer/pepper/pepper_in_process_router.h" |
12 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 12 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
13 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
14 #include "content/renderer/render_widget_fullscreen_pepper.h" | 14 #include "content/renderer/render_widget_fullscreen_pepper.h" |
15 #include "ppapi/host/ppapi_host.h" | 15 #include "ppapi/host/ppapi_host.h" |
16 #include "ppapi/proxy/host_dispatcher.h" | 16 #include "ppapi/proxy/host_dispatcher.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
18 #include "ui/gfx/point.h" | 18 #include "ui/gfx/point.h" |
19 #include "webkit/plugins/ppapi/fullscreen_container.h" | 19 #include "webkit/plugins/ppapi/fullscreen_container.h" |
20 #include "webkit/plugins/ppapi/host_globals.h" | 20 #include "webkit/plugins/ppapi/host_globals.h" |
21 #include "webkit/plugins/ppapi/plugin_delegate.h" | 21 #include "webkit/plugins/ppapi/plugin_delegate.h" |
22 #include "webkit/plugins/ppapi/plugin_module.h" | 22 #include "webkit/plugins/ppapi/plugin_module.h" |
23 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 23 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
24 | 24 |
25 using webkit::ppapi::HostGlobals; | 25 using webkit::ppapi::HostGlobals; |
26 using webkit::ppapi::PluginInstance; | 26 using webkit::ppapi::PluginInstance; |
27 using webkit::ppapi::PluginModule; | 27 using webkit::ppapi::PluginModule; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 PP_Instance pp_instance) const { | 260 PP_Instance pp_instance) const { |
261 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); | 261 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); |
262 if (!instance) | 262 if (!instance) |
263 return NULL; | 263 return NULL; |
264 if (instance->module() != module_) | 264 if (instance->module() != module_) |
265 return NULL; | 265 return NULL; |
266 return instance; | 266 return instance; |
267 } | 267 } |
268 | 268 |
269 } // namespace content | 269 } // namespace content |
OLD | NEW |