| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "content/renderer/pepper/fullscreen_container.h" | 14 #include "content/renderer/pepper/fullscreen_container.h" |
| 15 #include "content/renderer/pepper/host_globals.h" | 15 #include "content/renderer/pepper/host_globals.h" |
| 16 #include "content/renderer/pepper/pepper_browser_connection.h" | 16 #include "content/renderer/pepper/pepper_browser_connection.h" |
| 17 #include "content/renderer/pepper/pepper_graphics_2d_host.h" | 17 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
| 18 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 18 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
| 19 #include "content/renderer/pepper/pepper_in_process_router.h" | 19 #include "content/renderer/pepper/pepper_in_process_router.h" |
| 20 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 20 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 21 #include "content/renderer/pepper/plugin_module.h" | 21 #include "content/renderer/pepper/plugin_module.h" |
| 22 #include "content/renderer/render_view_impl.h" | 22 #include "content/renderer/render_view_impl.h" |
| 23 #include "content/renderer/render_widget_fullscreen_pepper.h" | 23 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 PepperPluginInstanceImpl* instance = | 281 PepperPluginInstanceImpl* instance = |
| 282 HostGlobals::Get()->GetInstance(pp_instance); | 282 HostGlobals::Get()->GetInstance(pp_instance); |
| 283 if (!instance) | 283 if (!instance) |
| 284 return NULL; | 284 return NULL; |
| 285 if (!instance->IsValidInstanceOf(module_)) | 285 if (!instance->IsValidInstanceOf(module_)) |
| 286 return NULL; | 286 return NULL; |
| 287 return instance; | 287 return instance; |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace content | 290 } // namespace content |
| OLD | NEW |